Would you like to learn how to get the user SID using Powershell? In this tutorial, we are going to show you how to use Powershell to get the user SID using the command-line on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Get the user SID
As an Administrator, start a new POWERSHELL command-line prompt.
Get the SID for a local user account.
Here is the command output.
Get the local username from a SID.
Here is the command output.
Congratulations! You are able to get the SID from a local user account.
Tutorial Powershell – Get the user SID from Active Directory
As an Administrator, start a new POWERSHELL command-line prompt.
Get the SID from an Active Directory username.
Here is the command output.
Get the SID from an Active Directory username.
Here is the command output.
Get the username from an Active Directory SID.
Here is the command output.
Congratulations! You are able to get the SID from an Active Directory user account.