Fix incorrect order of code statements
This commit is contained in:
parent
ec057db9ef
commit
9c02d8913f
1 changed files with 1 additions and 1 deletions
|
@ -385,8 +385,8 @@ class Context {
|
|||
$this.DeregisterNewUserReboot();
|
||||
$this.RemoveAutologin();
|
||||
$this.SetUACState($true);
|
||||
Remove-Item $($this.EnsureConfigKey().PSPath);
|
||||
$originalScheme = $this.Get("Power Scheme");
|
||||
Remove-Item $($this.EnsureConfigKey().PSPath);
|
||||
|
||||
if ($originalScheme) {
|
||||
Write-Information "Reset power plan to original state";
|
||||
|
|
Loading…
Reference in a new issue