Tuesday, February 28, 2012

List of useful WMI classes to use with PowerShell.

 

Hi,

Here is the list of some useful WMI Classes :).

ClassName

Contains

win32_ComputerSystemProduct

Serial Number, Vendor, information

win32_bios

Bios Information , including Version Number of BIOS

win32_battery

Battery Information

win32_Physicalmemory

Serial Number, Capacity, Part Number of Installed Memory Stick.

win32_DiskDrive

Capacity, Serial Number of Drive and other info of the Hard-disk

win32_DesktopMonitor

Monitor Information including Resolutions

win32_cdromdrive

Information Related Cd Drive

win32_networkadapter

Network Adaptor information contains, manufacturer, MAC ID etc

win32_pointingdevice

Mouse related information

win32_operatingsystem

OS Name, OSArchitecture, Version Info

win32_logicalDisk

DeviceID, Free Space, Size of Partition,

Win32_NetworkConnection

Mapped Network Drives

win32_printer

List of Installed Pri ters

win32_PrinterdRIVER

List of Printer Drivers

Win32_NetworkAdapterConfiguration

IP Adress, DHCP , DNS and other information of Network Drivers.

win32_startupCommand

List of Software which are on STARTUP folders

win32_process

All Running Processes

win32_Service

List of All Services

win32_Product

List of Installed Software

 

Thanks

aman dhally

5 comments:

  1. WIn32_Product takes a long time to query so either write a very specific query and maybe even run as a background job.

    ReplyDelete
    Replies
    1. WoW!!! Jeffery Hicks !!!!
      Thanks for the comments .... and thanks for the suggestion ...
      Jeffery Hicks... WOW !!!!!!!!!!!

      Delete
    2. powershell gci hklm:\Software\Microsoft\Windows\CurrentVersion\Uninstall -rec ^| gp ^| select ReleaseType, DisplayVersion, DisplayName, Publisher ^| more
      powershell gci

      hklm:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall -rec ^| gp ^| select ReleaseType, DisplayVersion, DisplayName, Publisher ^| more

      Delete
  2. there is also:

    win32_environment
    win32_share
    ..etc

    ---my blog:-------------8<--------
    http://walid-toumi.blogspot.com/
    --------------8<------------------

    ReplyDelete

Note: Only a member of this blog may post a comment.