Saturday, July 27, 2024
HomePowershellThe way to retrieve the Area SID – SID-500.COM

The way to retrieve the Area SID – SID-500.COM


PowerShell

Not too long ago I wanted the area SID to configure MFA with a third occasion device. The place can I get the area SID? That’s precisely what I’ll present on this weblog submit. Let’s get began!

Retrieving Area SID

Open PowerShell. Hit the keys and enter the One-Liner beneath to retrieve the Area SID of your Lively Listing Area.

(Get-ADDomain).DomainSID.Worth 

With this command the area SID just isn’t displayed, it’s copied to the clipboard.

(Get-ADDomain).DomainSID.Worth | Set-Clipboard

To save lots of the area SID to a file execute the next command.

(Get-ADDomain).DomainSID.Worth | Out-File $homedomainsid.txt

I hope this submit was useful for one or the opposite.

Printed by Patrick Gruenauer

Microsoft MVP on PowerShell [2018-2023], IT-Coach, IT-Advisor, MCSE: Cloud Platform and Infrastructure, Cisco Licensed Academy Teacher.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments