Advertisement
gkhairallah

Operation System Information

Jun 22nd, 2011
3,371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "Operating System Information for @WKSTA"
  2.  
  3. $wmiColl = GetObject("WinMgmts:root/cimv2").ExecQuery("Select * FROM Win32_OperatingSystem ")
  4.  
  5. For Each $wmiObj in $wmiColl
  6.  
  7.     ? "Build NUmber: " + $wmiObj.BuildNumber
  8.     ? "Build Type: " + $wmiObj.BuildType
  9.     ? "Caption: " + $wmiObj.Caption
  10.     ? "Creation Class Name: " + $wmiObj.CreationClassName
  11.     ? "CS Creation Class Name: " +  $wmiObj.CSCreationClassName
  12.     ? "CSD Version: " + $wmiObj.CSDVersion
  13.     ? "CS Name: " + $wmiObj.CSName
  14.     ? "Description: " + $wmiObj.Description
  15.     ? "Name: " + $wmiObj.Name
  16.     ? "Operating System SKU: " + $wmiObj.OperatingSystemSKU
  17.     ? $wmiObj.Organization
  18.     ? "OS Architecture: "  + $wmiObj.OSArchitecture
  19.     ? "OS Product Suite: "  +$wmiObj.OSProductSuite
  20.     ? "OS Type: " + $wmiObj.OSType
  21.     ? "Other Type Description: " + $wmiObj.OtherTypeDescription
  22.     ? "Plus Product ID: " + $wmiObj.PlusProductID
  23.     ? "Plus Version Number: " + $wmiObj.PlusVersionNumber
  24.     ? "Product Type: " + $wmiObj.ProductType
  25.     ? "Serial Number: " + $wmiObj.SerialNumber
  26.     ? "Status: " + $wmiObj.Status
  27.     ? "Version: " + $wmiObj.Version
  28. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement