Table of Contents
Change Logon Command in Windows is easier to understand when the core ideas are paired with practical examples. The sections below explain the topic clearly, highlight useful steps, and point out details that can prevent common errors.
- Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.
The change logon command enables or disables login from client sessions or displaying the current login status. This utility is very useful for system maintenance. To find examples of how to use this command, please go to the Example below.
Note
In Windows Server 2008 R2, Terminal Services has been renamed to Remote Desktop Services.
Command syntax change logon
change logon {/ query | / enable | / disable | / drain | / drainuntilrestart}
Parameters
Description / query parameter Displays the current login status, whether enabled or disabled. / enable Allow logging in from the guest session, but not from the control panel. / disable Disable subsequent logins from guest sessions, but not from the control panel. Does not affect the user currently logged in. / drain Disable login from the new guest session but allow connection to the current session. / drainuntilrestart The login information is disabled from the new guest sessions until the computer restarts, but allows connecting to existing sessions. /? Show help at the command prompt.Note
- Only the administrator can use the change logon command.
- Logins are reactivated when you restart the system. If you are connected to the Remote Desktop Session Host (rd Session Host) server from the guest session and disable login, then log out before activating the login again, you will not be able to reconnect to your session.. To re-enable logins from client sessions, log in to the console.
As an example,
- Change command in Windows
- Cd command in Windows
- The cacls command in Windows
FAQ
What is Change Logon Command in Windows?
Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.
Why is Change Logon Command in Windows important?
A clear understanding of Change Logon Command in Windows helps you make informed decisions, avoid common mistakes, and use the relevant tools or techniques more effectively.
How should beginners approach Change Logon Command in Windows?
Start with the fundamental concepts, follow the examples step by step, and test each change in a safe environment before applying it to important systems or data.
Reader Comments 0
Sign in with email or Google to join the discussion.