Getting PowerShell Execution Policy Error 80070422 – What Service is Causing It?

0
0
Asked By TechWhiz123 On

Good morning everyone! I'm running a script to update an inventory agent across our servers, and it works perfectly on 98% of them. However, one server is throwing a peculiar error: 'get-executionpolicy : The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. (Exception from HRESULT: 0x80070422)'. I'm curious to know which service PowerShell relies on that might be preventing this command from executing. Any insights would be appreciated!

2 Answers

Answered By SysAdminGuru On

Glad you caught that! Disabling the necessary services will definitely yield such errors. Now that you've confirmed they were off and restarted them, your command should work perfectly, right?

Answered By PowerUser88 On

What version of PowerShell are you using? If it's PS 5.1, that could be a factor. Just curious, since you're on Server 2012R2 with PS 4.0. I've run the same script without issues on other similar servers.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.