After you apply the April 2017 security updates described in Microsoft security update guidance CVE-2017-0160, the PowerShell v3.0+ stop-computer command fails. You get a "Privilege not held" error message.
Customers who try to turn off or restart a system, either local or remote, by using the stop-computer command on PowerShell v3.0 and later, will see the following error:
stop-computer : Privilege not held.
At line:1 char:1
+ CategoryInfo : InvalidOperation: (<COMPUTERNAME>:String) [Stop-Computer], ManagementE
+ FullyQualifiedErrorId : StopComputerException,Microsoft.PowerShell.Commands.StopComputerCommand
To work around this issue, run the following “shutdown.exe” command to execute power-down and restart operations on local or remote systems:
shutdown.exe [-r] [-s] [-m \\computer]
For more information and command help, run:
This article applies to the following products, as described in the Affected Products section of CVE-2017-0160:
Microsoft .NET Framework 2.0, 3.5, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 on all supported versions of Windows running PowerShell 3.0 and later versions.
Microsoft is investigating this issue and will post more information in this article when the information becomes available.
Article ID: 4020459 - Last Review: Apr 20, 2017 - Revision: 15