My task is to press a key sequence, such as Ctrl + Shift + R , to restart the Windows service.
I have a script that works fine in PowerShell ISE when run as administrator.
When I try to use the PowerShell script, it does not work due to insufficient administrative privileges. It's annoying that I can get it to work with the old bat file, but not with PowerShell.
The root of the problem is that the shortcuts for the PowerShell script have a grayed out Administrative Privileges window. So far, no work has overcome this privilege problem.
Any ideas?
source share