Skip to content

Melvin's Web Stuff

My Online Notepad

  • About
  • Blog
    • ASP.NET
    • Visual Studio
    • C#
    • VB.NET
    • PHP
    • SQL
    • JavaScript
    • CSS
    • IIS
    • SQL Server
  • Contact

Category: Command Prompt

Remote desktop users – Log off from a remote machine

command line remote desktop
List the current log on session(s):
C:\>quser

List the current log on session(s) on the remote desktop computer:
C:\>quser /SERVER: xx.xx.xx.xxx

To log off session listed in the previous step, use the following command. Here I am trying to log off the session 0.
C:\> logoff /SERVER:xx.xx.xx.xxx 0 /V

(Source)

Author MelvinPosted on October 30, 2012August 6, 2019Categories Command Prompt, Network, Windows

Identify members of local groups using Command Prompt

To list members of the Power Users group (You must include the quotation marks.):

net localgroup "power users"

To list members of the Users group:

net localgroup users

To list members of the Administrators group:

net localgroup administrators
Author MelvinPosted on September 8, 2010November 22, 2016Categories Command Prompt

Recent Posts

  • How to disable anonymous authentication in IIS Express
  • Enable CORS IIS Express
  • Kendo UI Editor – A FreeTextBox Replacement
  • Cache JQuery Selectors To Improve Performance
  • String.Format to set a constant in .NET
  • About
  • Blog
    • ASP.NET
    • Visual Studio
    • C#
    • VB.NET
    • PHP
    • SQL
    • JavaScript
    • CSS
    • IIS
    • SQL Server
  • Contact
Melvin's Web Stuff Proudly powered by WordPress