When i enter the team
Start-Process powershell -WorkingDirectory "D:\folder"
it opens a new PowerShell window with location settings D:\folder
.
But when I enter the team
Start-Process powershell -WorkingDirectory "D:\folder" -Verb RunAs
it opens a new PowerShell window with administrator privileges , but with a location setting C:\Windows\system32
.
How can I open a new PowerShell admin window and determine my own location?
Paweł source
share