diff --git a/scripts/Windows/Scripts/PowerManagement.ps1 b/scripts/Windows/Scripts/PowerManagement.ps1 index 69f834cc..bcaabad2 100644 --- a/scripts/Windows/Scripts/PowerManagement.ps1 +++ b/scripts/Windows/Scripts/PowerManagement.ps1 @@ -75,13 +75,14 @@ $null = New-Module { param( [Parameter(ParameterSetName="System")] [switch] $System, - [Parameter(ParameterSetName="User",Mandatory)] + [Parameter(ParameterSetName="User", Mandatory)] [switch] $User, [Parameter(ParameterSetName="User")] + [Parameter(ParameterSetName="SpecificUser", Mandatory)] [RegistryKey] $UserKey ) - if ($User.IsPresent) { + if ($User.IsPresent -or $UserKey) { if (-not $UserKey) { $UserKey = Get-Item "HKCU:\"; }