PowerShell for Windows Admins

Nov 3 2010   2:00PM GMT

WMI Settings



Posted by: Richard Siddaway
WMI

I have been digging into WMI internals a lot recently and came across a class that shows me the WMI settings.

001
002
003
004
005
006
007
008
009
010
011
012
Get-WmiObject Win32_WMISetting | 
select ASPScriptDefaultNamespace, 
BuildVersion, DatabaseDirectory, 
EnableEvents, EnableStartupHeapPreallocation,
HighThresholdOnClientObjects,
InstallationDirectory, 
LoggingDirectory, LoggingLevel,
LowThresholdOnEvents, MaxLogFileSize,
MaxWaitOnEvents

Get-WmiObject Win32_WMISetting | 
select -ExpandProperty AutorecoverMofs

I have to call it twice because I want to expand the list of MOF files

Comment on this Post

Leave a comment: