[Notification] We're upgrading the JumpCloud Support Center the week of September 30th.

Support Center

(Windows) Commands Tab Policy - Disable Guest Login


Using the Commands Tab, many administrative users will deploy scripts and commands to further their ability for systems management using JumpCloud.  In working with a varied audience of users and environments, we have collaborated to create some "Policy" commands for purposes ranging from security to software management.

The command listed in this article are specific to disabling the Guest login account for Windows systems.


When utilizing Windows, you have the ability to decide if you would like to run the command execution via either PowerShell or CMD.  Some commands will require that one or the other be specified.  With the Disable Guest Login example, you can execute using either Windows Powershell or CMD.  Note the following when wanting to switch between Windows PowerShell and CMD:
  • Select the "Windows PowerShell" option for PowerShell
  • Unselect the "Windows PowerShell" option for CMD


Windows (CMD or PowerShell)

In the below example you will mark the local Guest account as inactive and disallow login.

net user guest /active:no

You may re-activate the Guest account at a later time with the following.

net user guest /active:yes

Last Updated: Aug 05, 2016 01:52PM MDT

Related Articles
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found