Skip to Content
Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
book

Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide

by Ed Wilson
October 2005
Beginner to intermediate
400 pages
12h 42m
English
Microsoft Press
Content preview from Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® Scripting Self-Paced Learning Guide

Microsoft® Windows® Scripting Self-Paced Learning Guide

Ed Wilson

Publisher Resources

ISBN: 0735622310Catalog PageErrata