Determine OS and Service Pack Version

This PowerShell script reads a list of computers specified in a text file and outputs the Operating System Name and the Service Pack version Information to an excel spreadsheet in a tabular form.

4.6 Star
Add to favorites
Operating System
E-mail Twitter Digg Facebook
  • OS_Memeory
    1 Posts | Last post July 19, 2018
    • I need the similar report but the script not returning the output in file format as mention in output format and dont seen the result and no error ..any idea ?
  • Do you have script that can pull os version,os bit number and physical or virtual in a excel sheet from remote server
    1 Posts | Last post September 18, 2014
    • Hi manoj,
      i need a script that get server names for input text file(Which have server names in it) and gives  0s version,os bit number & physical or virtual information in a output excel file
       i don't have powershell scripting knowledge so please give me full script
      Please Please Please i need that script very badly
  • OS info
    2 Posts | Last post November 28, 2013
    • Hi Manoj,
      "Greetings from Muthu"
      We have depolyed more than 500 system with windows 7. now we don`t have the inventory where we can determine whether 32bit/64 bit system.
      So could you help me to get the script where we can get this information for the remote systems.
      Kindly let me know if you have any queries. 
      With Regards,
    • Muthu, this is probably a bit late, but the information is held in Get-WmiObject -class Win32_OperatingSystem that the script is using.
      Below is where the table is being populated:
      $colOS =Get-WmiObject -class Win32_OperatingSystem -computername $Strcomputer 
      foreach($objComp in $colOS) 
      $c.Cells.Item($intRow, 2) = $objComp.Caption 
      $c.Cells.Item($intRow, 3) = $objComp.Description 
      $c.Cells.Item($intRow, 4) = $objComp.ServicePackMajorVersion 
      If you wanted to output the system architecture instead of, say, the description, you could substitute "$objComp.OSArchitecture" for "$objComp.Description".
      Obviously you should also modify the earlier part of the script where the row labels are created.