Start-Process Powershell -Verb RunAs -WorkingDirectory C:\
This won’t open to the set working directory. Anyone know how to get this working?
Start-Process Powershell -Verb RunAs -WorkingDirectory C:\
This won’t open to the set working directory. Anyone know how to get this working?
That’s probably a security feature of some sort. I’ve noticed that my elevated prompts always show up in the \windows\system32 directory. Instead of -WorkingDirectory C:, try -ArgumentList '-NoExit -Command Set-Location C:'
That does it. Thanks!