Thursday, February 28, 2008

Sudden Death Challenge: Event 5

 

# one line

gwmi -list | ? {$_.name -like "WIN32_*"} | % {$_.psbase.properties} | ? {($_.name[0] -cmatch '[A-Y]') -and ($_.origin -like "WIN32_*")} | group {$_.name[0]} | sort name | select @{n="Name";e={$_.group[0].name}},@{n="Class";e={$_.group[0].origin}} | ft -auto


# results
Name                      Class                               
----                      -----                               
ArpAlwaysSourceRoute      Win32_NetworkAdapterConfiguration   
Bias                      Win32_TimeZone                      
ColorPlanes               Win32_DisplayControllerConfiguration
DriveName                 Win32_VolumeChangeEvent             
EventType                 Win32_PowerManagementEvent          
FileName                  Win32_ModuleLoadTrace               
GatewayCostMetric         Win32_NetworkAdapterConfiguration   
HorizontalResolution      Win32_DisplayControllerConfiguration
ImageBase                 Win32_ModuleLoadTrace               
JavaClass                 Win32_ClassicCOMClassSetting        
KeepAliveInterval         Win32_NetworkAdapterConfiguration   
LastDrive                 Win32_BootConfiguration             
MachineName               Win32_ComputerSystemEvent           
NumForwardPackets         Win32_NetworkAdapterConfiguration   
OEMEventCode              Win32_PowerManagementEvent          
ProcessID                 Win32_ModuleLoadTrace               
QuotaNonPagedPoolUsage    Win32_Process                       
RemainingEvaluationPeriod Win32_WindowsProductActivation      
StackBase                 Win32_ThreadStartTrace              
Type                      Win32_ComputerShutdownEvent         
UserStackBase             Win32_ThreadStartTrace              
VerticalResolution        Win32_DisplayControllerConfiguration
WaitMode                  Win32_ThreadStartTrace              
XOffCharacter             Win32_SerialPortConfiguration       
YResolution               Win32_PrinterConfiguration          


No comments: