Disable the Guest Account

Uses the Shell object to disable the Guest account on the local computer.

VBScript Code


Set objComputer = CreateObject("Shell.LocalMachine")
objComputer.DisableGuest(0)