< Back
Convert-SIDtoACName
Post
NAME Convert-SIDtoACName
SYNOPSIS
Convert SID to account name
SYNTAX
Convert-SIDtoACName [-SID] <String[]> [<CommonParameters>]
DESCRIPTION
This command enables you to know the account name of the given SID.
PARAMETERS
-SID <String[]>
Specifies the SID of the Active Directory object
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
ActiveDirectory object's SID
OUTPUTS
Account name of the SID
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Convert-SIDtoACName -SID S-1-5-21-725345543-2052111302-527237000-773150
SID AccountName
--- -----------
S-1-5-21-725345543-2052111302-527237000-773150 CloudComputee\\Admin$
This is the example for a successful finding
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Convert-SIDtoACName -SID S-1-5-21-725345543-2052111302-527237000-770050
SID AccountName
--- -----------
S-1-5-21-725345543-2052111302-527237000-770050 SID NOT FOUND
This is the example when the command not able to find any SID in the entire directory
RELATED LINKS
SYNOPSIS
Convert SID to account name
SYNTAX
Convert-SIDtoACName [-SID] <String[]> [<CommonParameters>]
DESCRIPTION
This command enables you to know the account name of the given SID.
PARAMETERS
-SID <String[]>
Specifies the SID of the Active Directory object
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
ActiveDirectory object's SID
OUTPUTS
Account name of the SID
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Convert-SIDtoACName -SID S-1-5-21-725345543-2052111302-527237000-773150
SID AccountName
--- -----------
S-1-5-21-725345543-2052111302-527237000-773150 CloudComputee\\Admin$
This is the example for a successful finding
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Convert-SIDtoACName -SID S-1-5-21-725345543-2052111302-527237000-770050
SID AccountName
--- -----------
S-1-5-21-725345543-2052111302-527237000-770050 SID NOT FOUND
This is the example when the command not able to find any SID in the entire directory
RELATED LINKS