Elevate a script to run with admin permissions and keep passed arguments

前端 未结 0 1833
误落风尘
误落风尘 2021-02-01 22:22

I\'m working on a PS script that needs to be executed with admin rights. For that I have the following function:

function openWithPriv {
    if (!([Security.Princ         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题