Tuesday, November 20, 2012

How to find all subnets for the specific Active Directory site

Start the command prompt as an Administrator and run the command:

dsquery subnet -o rdn -site Site_Name -limit limit_number>>output_path_file

example:
dsquery subnet -o rdn -site SITE1 -limit 50>>C:\temp\subnets.txt