用于检查脚本是否以管理员模式运行的VBScript [英] VBScript to check if the script is being ran in Administrator mode

查看:125
本文介绍了用于检查脚本是否以管理员模式运行的VBScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我已经有一段时间了,因为我触及了VBScript,并且被要求创建一个脚本来检查脚本是否已经运行作为管理员,如果它返回true,如果它没有返回false。



听起来很容易但我在哪里可以开始确定它是否有?



谢谢,



Mitch

解决方案

< blockquote>在这里查看: 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[^]


这篇关于用于检查脚本是否以管理员模式运行的VBScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆