“Privilege not held” error with PowerShell “Stop-Computer” cmdlet

Since April 2017 security updates, you may get the following error when you use the Stop-Computer cmdlet:

As described by Microsoft in the following KB,  it is an issue caused by the April 2017 security updates and affects PowerShell 3.0 and later.

This error has not yet been fixed. So you must use the Shutdown command as a workaround:

You also can still use the Stop-Computer cmdlet by adding the -AsJob parameter:


Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 248 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 8 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.