I have written a powershell script that installs and starts some services. It will only work if the script is run as administrator. Is there any way force a script to have those privileges?
I have written a powershell script that installs and starts some services. It will
Share
In the case you are using PowerShell V2 You can also do the following :
This would run “Get-Service” as administrator, you can replace it with your script.