Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use VBS to detect Guest status

Shulou Source: shulou.com Published: 2022-06-03 19:37:37 09月29日 Update

This article mainly introduces "how to use VBS to detect Guest status". In daily operation, I believe many people have doubts about how to use VBS to detect Guest status. The editor consulted various materials and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to use VBS to detect Guest status"! Next, please follow the small series to learn together!

The code is as follows:

Set objNetwork = CreateObject("Wscript. Network") strComputer = objNetwork.ComputerName Set objUser = GetObject("WinNT://" & strComputer & "/Guest") If objUser.AccountDisabled Then Wscript. Echo "Guest is disabled" Else Wscript.Echo "Guest is on" End If this, the study on "How to use VBS to detect Guest status" is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Tags: Status testing learning more help practical next code articles methods theories knowledge articles websites materials follow questions easy to use practice solutions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Microsoft MariaDB Linux Apple