When I enter the command
Start-Process powershell -WorkingDirectory "D:folder"
it opens new PowerShell window with D:folder
location set.
But when I enter the command
Start-Process powershell -WorkingDirectory "D:folder" -Verb RunAs
it opens new PowerShell window with admin rights but with C:Windowssystem32
location set.
How can I open new PowerShell window with admin rights and my own location determined?
See Question&Answers more detail:os