How to run a process as non-admin from an elevated PowerShell console?

前端 未结 4 1704
孤独总比滥情好
孤独总比滥情好 2021-02-05 13:51

Maybe there is a way to do it with Start-Process cmdlet that I cannot find? The other related Q/A\'s I found on StackOverflow such as this, this and this all give a solution to

4条回答
  •  滥情空心
    2021-02-05 14:30

    in start-process exist switch runas like

    start-process powershell -verb runAs
    

    but still uac check you if in your system uac on you should first bypass uac there are many way exist for bypass uac but all ways doesn't work in all windows like windows 8 if you write script for run process then compile to exe you can use program like runasadmin for run as admin your exe in system but still not work in windows 8

提交回复
热议问题