310 Part V: Security and Troubleshooting
8. Next create a new instance of the active script event consumer. You have a MOF file that
will write to an event log when Calc.exe is closed out. It requires a reboot to take effect.
9. In the command prompt window, use Mofcomp.exe to compile the Asec.mof MOF file.
This MOF file takes about a minute to compile, so do not get alarmed when it does not
compile as quickly as the two previous examples. The command to do this looks like the
following:
D:\>mofcomp asec.mof
10. When it is completed compiling, the output looks like the following:
Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.2180
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: asec.mof
MOF fil