-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: bat
Find Operations Masters in Active Directory
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 … Continue reading
Posted in Active Directory, bat, troubleshooting, windows
Comments Off on Find Operations Masters in Active Directory
Date and Time in .bat
I will skip right to the good stuff. Here are some easy Date/Time variables for a batch file. [code lang=”powershell”] @echo off ::Day set d=%date:~7,2% set DD=%date:~0,3% ::Month set m=%date:~4,2% ::Year set YY=%date:~10,4% set y=%date:~12,2% ::Time set H=%time:~0,2% set i=%time:~3,2% … Continue reading
Posted in bat
Comments Off on Date and Time in .bat