Running Powershell as admin

Hello,

I am currently trying to run a script in Powershell as administrator but I cannot do it in a single Powershell instance. The only way I have found is to START A PROCESS (starting Powershell as administrator) and than INVOKE POWER SHELL and adding the script as command BUT this will open 2 different powershell instances. Is there any way to send as command the administrator command + the script? Also, is there any way to send Admin credentials in order to prevent the pop up Powershell instance asking for credentials?

@m.soto,

Have you tried this Knowledgebase ?

Thanks,
Ashok :slight_smile: