31.Dec.2009 |
by Gusac |
Filed in: Articles, Troubleshoot
While working on Windows 2008 SP2 what I figured out was that Data Collector Set (Perfmon) logs do not start automatically after system restart.
Windows 2008 SP2 R2 server does not show the same symptom. The workaround that I could figure out is to put a command at startup that starts the Data Collector Set. Here is how:
We configured the Data collector set, the way normally do in MMC and then created a startup entry to start the data collector using command line. The command line to start the data collector set is:
Logman start <data collector set name>
You can put this command in the following registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value name: Startlog (could be any name that you want)
Value type: REG_SZ
Value data: Logman start <data collector set name> (<data collector set name> should be the log name that you created)