SEP Logs creation
When working with support you may have to collect the logs from your SEPM, and if you have multiple SEPMs and are doing multiple collections it can get somewhat confusing. I modified the CollectLog.CMD script you will find in your Tools directory to replace the line:
with the following lines
Rem Added the following lines to change the report formate to Servername_Date_SEPM_Logs.zip
Rem Parse the Date enviroment variable, this resolves us the / is used as a field seperator.
For /f "tokens=2,3,4 delims=-/ " %%a in ("%date%") Do Set Dateset=%%a-%%b-%%c
The result is a log report that includes the system name and a date when the collection was run.
If you have multiple managers I put together a simple script to use PSexec to remotely run the collection on multiple managers and zip them all up into a single file. To run this you need the PSexec utility of course and administrative rights on your target servers.
Examples of both are inclosed.