Update code accordingly
This commit is contained in:
parent
f91980ce9a
commit
fed96c7cdf
2 changed files with 4 additions and 4 deletions
|
@ -154,8 +154,8 @@ function Enable-PersonalUserAutologon([Context] $context, [string] $userName)
|
|||
}
|
||||
}
|
||||
|
||||
$context.Set($preparedUsernameProperty, $userName, "ExpandString");
|
||||
$context.Set($preparedPasswordProperty, $password, "ExpandString");
|
||||
$context.Set($preparedUsernameProperty, $userName);
|
||||
$context.Set($preparedPasswordProperty, $password);
|
||||
Start-EventDrivenTask $context.Get($autoLoginTriggerProperty);
|
||||
}
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ class Context {
|
|||
}
|
||||
|
||||
[void] SetStage([string] $name) {
|
||||
$this.Set($this.StagePropertyName, $name, "ExpandString");
|
||||
$this.Set($this.StagePropertyName, $name);
|
||||
}
|
||||
|
||||
[string] GetStage() {
|
||||
|
@ -393,7 +393,7 @@ class Context {
|
|||
|
||||
if ($currentScheme -ne $performanceScheme) {
|
||||
Write-Information "Disabling Power Save mode";
|
||||
$this.Set("Power Scheme", $currentScheme, "ExpandString");
|
||||
$this.Set("Power Scheme", $currentScheme);
|
||||
powercfg /S 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue