To start, I am new to powershell
I am trying to start a powershell with admin rights without being prompted. Google have so far shown me :
Start-Process powershell -verb runas
What I am trying to do
I have some computers residing on a restricted network and I can’t remote control them. I can send an powershell command.
The thing I will do i use the $PSWindowsUpdate module to force updates to be installed on the computers.
So planning on having a ps1 file to run with powershell elevated should give me what I need.
So, is there a way to elevate powershell to run a specific ps1 file ?
All tips and tricks is highly appreciated