Powershell - Pain Relief by R.T.Edwards
Saturday, March 23, 2013
ADSI getting the current domain
Really easy to get the active domain:
$iret = [System.Reflection.Assembly]::LoadWithPartialName("System.DirectoryServices")
$Domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment