用VBS检测Guest状态的脚本

 更新时间:2008年05月30日 23:36:31   作者:  
用vbs实现guest用户的状态的脚本
复制代码 代码如下:

Set objNetwork = CreateObject("Wscript.Network") 
strComputer = objNetwork.ComputerName 
Set objUser = GetObject("WinNT://" & strComputer & "/Guest") 
If objUser.AccountDisabled Then 
Wscript.Echo "Guest为禁用状态" 
Else 
Wscript.Echo "Guest为开启状态" 
End If

相关文章

最新评论