Using DCDIAG:
dcdiag
/s:dc01.domain.com /test:ridmanager /v | find /i "Available RID"
Using PowerShell to
convert the parts of riDAvailablePool into issued and remaining RIDs.
$DomainDN =
(Get-ADDomain).DistinguishedName
$property =
get-adobject “cn=rid manager$,cn=system,$DomainDN” -property ridavailablepool
-server (Get-ADDomain).RidMaster
$rid =
$property.ridavailablepool
[int32]$totalSIDS =
$($rid) / ([math]::Pow(2,32))
[int64]$temp64val =
$totalSIDS * ([math]::Pow(2,32))
[int32]$currentRIDPoolCount
= $($rid) – $temp64val
$ridsremaining =
$totalSIDS – $currentRIDPoolCount
Write-Host “RIDs
issued: $currentRIDPoolCount”
Write-Host “RIDs
remaining: $ridsremaining”
No comments:
Post a Comment