Set objNetwork = CreateObject("Wscript.Network")
strComputer = objNetwork.ComputerName
Set objUser = GetObject("WinNT:https://" & strComputer & "/Guest")
If objUser.AccountDisabled Then
Wscript.Echo "Guest为禁用状态"
Else
Wscript.Echo "Guest为开启状态"
End If
更多文章请关注《万象专栏》
转载请注明出处:https://www.wanxiangsucai.com/read/cv165502