powershell stop-computer
cmdlet suddenly stops to work, even in administrator shell:
PS C:\> Stop-Computer
Stop-Computer : Privilege not held.
At line:1 char:1
+ Stop-Computer
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (fluter-s:String) [Stop-Computer], ManagementException
+ FullyQualifiedErrorId : StopComputerException,Microsoft.PowerShell.Commands.StopComputerCommand
It used to work with non-administrator shell, because surely a normal user can shutdown the system. There isn't a system update either.
Version info:
PS C:\> echo $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14393.1066
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.1066
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1