KAPes musings !

Posts Tagged ‘script’

A better solution for 2+ GB PST Export

Posted by kapes on October 16, 2009

Here is a very good script to get the old frowned upon task of exporting PST for more than 2+ GB mailbox from Exchange done.

Posted in Programming, Scripts | Tagged: | 8 Comments »

Scripts and Files of the Inside Active Directory book

Posted by kapes on September 30, 2009

Inside Active Directory contains over 60 sample scripts written in VBScript, as well as some LDIF, batch, and Excel files.

Posted in Uncategorized | Tagged: | Leave a Comment »

List all sites and relevant subnets and domain controllers

Posted by kapes on September 11, 2009

To list all site names

dsquery site -o rdn -limit 0 > all.sites.txt

To get all associated subnets (all.sites.txt from above command is required)

for /F %A in (all.sites.txt) do For /F %X in (‘dsquery subnet -site %A -o rdn’) do echo %A,%X >> sites.subnets.csv

To get all associated domain controllers (all.sites.txt from above command is required)

for /F %A in (all.sites.txt) do For /F %X in (‘dsquery server -site %A -o rdn’) do echo %A,%X >> sites.Servers.csv

Posted in Uncategorized | Tagged: , | Leave a Comment »