You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running Windows Core Series, query and logoff administrative RDP users.
When running these commands or using them in scripts keep in mind that some may become deprecated in future versions of Windows. Best practice is to use the PowerShell commands, when possible, to future proof any script that use these commands. These commands were run on Windows Server 2012R2.
When running Windows Server 2012+ without a GUI note that the GUI can be reinstalled via PowerShell (Install-WindowsFeature) and a reboot.
From Windows Server core command prompt:
To view logged on users. Note the ID number as it is needed for remotely logging off a connection:
C:>Qwinsta /Counter
or
C:>Query Session
or
C:>Quser
To logoff a user connected to RDP session:
C:>Logoff /v
or
C:>Rwinsta
If you know any other interesting ways of getting this information from a Windows Server core installation post below.
The text was updated successfully, but these errors were encountered:
Running Windows Core Series, query and logoff administrative RDP users.
When running these commands or using them in scripts keep in mind that some may become deprecated in future versions of Windows. Best practice is to use the PowerShell commands, when possible, to future proof any script that use these commands. These commands were run on Windows Server 2012R2.
When running Windows Server 2012+ without a GUI note that the GUI can be reinstalled via PowerShell (Install-WindowsFeature) and a reboot.
From Windows Server core command prompt:
To view logged on users. Note the ID number as it is needed for remotely logging off a connection:
C:>Qwinsta /Counter
or
C:>Query Session
or
C:>Quser
To logoff a user connected to RDP session:
C:>Logoff /v
or
C:>Rwinsta
If you know any other interesting ways of getting this information from a Windows Server core installation post below.
The text was updated successfully, but these errors were encountered: