且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用于检查脚本是否以管理员模式运行的VBScript

更新时间:2023-12-04 21:49:52

在这里查看: http://csi-windows.com/toolkit/csi-issession [ ^ ]和这里:http://csi-windows.com/toolkit/vbscriptuackit [ ^ ]


Hi all,

It''s been a while since i have touched VBScript and have been asked to create a script that checks if the script has been ran as administrator, if it has return true, if it hasnt return false.

Sounds easy enough but where can i start to determine whether it has or not?

Thanks,

Mitch

Look here: http://csi-windows.com/toolkit/csi-issession[^] and here: http://csi-windows.com/toolkit/vbscriptuackit[^]