Categories
Archive
![]() Blogroll
|
Posted in Hosting & IIS7, Windows Powershell, Windows Server | No Comment | 1,512 views | 02/03/2010 12:35
My script works on all Active Directory Infrastructures without any change on script.
Usage is pretty simple: Get-ADInfoThats all! :) Getting Netbios name: (Get-ADInfo).Netbios Getting FQDN: (Get-ADInfo).FQDN Getting Active Directory Domain Name: (Get-ADInfo).$ADDomainName Getting Active Directory Primary Server Name: (Get-ADInfo).$ADServer You can use this in your all scripts. You no longer need any active directory information. |