Archive for the ‘bat’ Category

Find Operations Masters in Active Directory

Tuesday, June 1st, 2010

EDIT: I have found a much easier way to list the FSMO Roles holders.
From a command line on any domain controller, Type netdom query FSMO

Thanks to Microsoft, I have an easy solution to finding the FSMO Roles holders in a domain.

To ouput all the FSMO Role holders of a domian:

Download the file dumpfsmos.zip, extract the file, and run dumpfsmos.bat from the command line with a single argument of a domain controller.

dumpfsmos.bat MyDC01

To change any of the Operations Masters Follow these instructions.

Date and Time in .bat

Wednesday, February 24th, 2010

I will skip right to the good stuff.

Here are some easy Date/Time variables for a batch file.

Will Output

Hope it helps.