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

Visual Basic
Edit|Remove
Set objComputer = CreateObject("Shell.LocalMachine")
objComputer.DisableGuest(0)