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
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?
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
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String