Monday, May 16, 2022

Display Logged on User Account SID

 

Simple Command Line to Display Logged on SID

A simple method to display the SID of the logged in user domain user account is using a command that's common but not often used. It's been part of the MS Windows operating systems since before Windows 10 and present in server additions as well.    

The whoami command when run without options will display the currently logged in user account If you are providing remote support, this command is helpful if you are remotely accessing the desktop and troubleshooting an issue that requires knowing the user's SID such as user profile issues.  

If your not familiar with the whoami command at all try it out. On a desktop logged in with a Domain account, open a command prompt and then type the command whoami and hit the enter key. The command's output displays just the currently logged in user. 

Run the command again (up arrow) and add the simple option  /user  and it will display the SID of the user like this: 

           C:\>whoami /user 




Display local SID of non-domain user account 

If the user is not a domain account, like a desktop at a remote office or home display the local windows account SID use the following command line 
      
                     wmic useraccount where name='username' get sid

 


  


  

Share/Save/Bookmark


Working on user profiles or other user account issues on for Windows or other operating system platforms with the help of online desktop control. Enhance your Support Service level with Software for Desktop Support Online.  Take on small desktop application issues or the more affecting server problems. Even if you have a remote access software, add an affordable backup and alternative of Online Remote Support Software to remotely access desktops online and provide support.  No agent or preinstalled software required. No plugins or browser extensions for remote desktop screen sharing sessions using 4RemoteSupport. Their service offers No cost increase ever and an unlimited number of sessions. Try for Free.