Check if the script has elevated permissions

后端 未结 5 2139
情书的邮戳
情书的邮戳 2021-01-01 04:14

I would like to check whether the context in which my VBscript runs allows me to perform administrative tasks.

Requirements:

  • The solution should
5条回答
  •  我在风中等你
    2021-01-01 05:19

    I have added two additional script kits that dramatically enhance the original code above that came from ifuserperms.vbs.

    CSI_IsSession.vbs can tell you almost anything you want to know about UAC or the current session the script is running under.

    VBScriptUACKit.vbs (which uses CSI_IsSession.vbs) allows you to selectively prompt for UAC in a script by relaunching itself. Has been designed and debugged to work under many execution scenarios.

提交回复
热议问题