“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 216 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 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 "MCSA: Windows Server 2012" and "Administering & Deploying SCCM" certified.