How to run PowerShell script ps1 file from the command line as an administrator.
Example:
I have Carlwebster script XD7_Inventory_V2_Signed.ps1, Downloaded from the below URL.
https://carlwebster.com/downloads/download-info/xenappxendesktop-7-8/
How can I run this PS1 file from the command line as an administrator?
Open in new window
if not then this will relaunch the script as an admin add this to the top of the script
Open in new window