Import-Module ActiveDirectory $u = Get-ADUser "cn=Administrator,cn=Users,dc=example,dc=lan" $u.SID.ToString() $g = Get-ADGroup "cn=Domain Users,cn=Users,dc=example,dc=lan" $g.SID.ToString() $c = Get-ADComputer "cn=DC1,ou=Domain Controllers,dc=example,dc=lan" $c.SID.ToString()
PowerShell で Active Directory のオブジェクト SID を取得する
事前準備は PowerShell で Active Directory の操作 を参照してください。