various WMI computer inventory commands via Powershell

wmi Win32_OperatingSystem.CSName
gwmi Win32_OperatingSystem.Name

Get-WmiObject Win32_OperatingSystem).Name | format-list

(Get-WmiObject Win32_OperatingSystem).CSName

Get-WmiObject Win32_OperatingSystem | Format-List csname, name

Get-WmiObject Win32_NetworkAdapterConfiguration | Format-List IPAddress

Get-WmiObject Win32_OperatingSystem | Format-List csname, name

gwmi Win32_NetworkAdapterConfiguration |     Where { $_.IPAddress } | # filter the objects where an address actually exists     Select -Expand IPAddress | # retrieve only the property *value*     Where { $_ -like ‘192.168.*’ }

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s