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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…