If this script works for you in your environment please rate it.  If you have problems running the script please start a discussion and state the error you are seeing or issue you have. 

This script was also created by the scripting guys, however I wanted to add some information of my own to the script. 

You may want to see the other scripts I have posted, such as "Enumerate Active Directory User Object Information", "Enumerate Active Directory Group Object Information", "Create Active Directory Group Object" or "Create Active Directory Computer Object" to assist you with your scripting needs. 

PowerShell
Edit|Remove
#This code demonstrates how to list Operating System information for the local system 
#without any plug-ins. 
#
#To run this script within your environment you should only need to copy and paste this script into
#either Windows Powershell ISE or PowerGUI Script Editor,(http://powergui.org) with the following
#changes to the script which I have numbered below.  
#  1.) You may also need to install Microsoft Update "http://support.microsoft.com/kb/968930".
#
# You may change the "." to a computer name, (example: "ComputerName") to get remote system information

$strComputer = "."

$objWin32OS = Get-WmiObject -Class Win32_OperatingSystem -namespace "root\CIMV2" -computername $strComputer
foreach ($objOSItem in $objWin32OS)
{
#  Write-Host $objOSItem.BootDevice 
  Write-Host "Build Number:" $objOSItem.BuildNumber
  Write-Host "Build Type:" $objOSItem.BuildType
  Write-Host "Caption:" $objOSItem.Caption
  Write-Host "CountryCode:" $objOSItem.CountryCode
  Write-Host "CreationClassName:" $objOSItem.CreationClassName
  Write-Host "CSDVersion:" $objOSItem.CSDVersion
  Write-Host "CSName:" $objOSItem.CSName
  Write-Host "CurrentTimeZone:" $objOSItem.CurrentTimeZone
  Write-Host "Distributed:" $objOSItem.Distributed
  Write-Host "EncryptionLevel:" $objOSItem.EncryptionLevel
  Write-Host "FreePhysicalMemory:" $objOSItem.FreePhysicalMemory
  Write-Host "FreeSpaceInPagingFiles:" $objOSItem.FreeSpaceInPagingFiles
  Write-Host "FreeVirtualMemory:" $objOSItem.FreeVirtualMemory
  Write-Host "InstallDate:" $objOSItem.InstallDate
  Write-Host "LargeSystemCache:" $objOSItem.LargeSystemCache
  Write-Host "LastBootUpTime:" $objOSItem.LastBootUpTime
  Write-Host "LocalDateTime:" $objOSItem.LocalDateTime
  Write-Host "Locale:" $objOSItem.Locale
  Write-Host "Manufacturer:" $objOSItem.Manufacturer
  Write-Host "MaxNumberOfProcesses:" $objOSItem.MaxNumberOfProcesses
  Write-Host "MaxProcessMemorySize:" $objOSItem.MaxProcessMemorySize
  Write-Host "Name:" $objOSItem.Name
  Write-Host "NumberOfLicensedUsers:" $objOSItem.NumberOfLicensedUsers
  Write-Host "NumberOfProcesses:" $objOSItem.NumberOfProcesses
  Write-Host "NumberOfUsers:" $objOSItem.NumberOfUsers
  Write-Host "Options:" $objOSItem.Options
  Write-Host "Organization:" $objOSItem.Organization
  Write-Host "OSLanguage:" $objOSItem.OSLanguage
  Write-Host "OSType:" $objOSItem.OSType
  Write-Host "Primary:" $objOSItem.Primary
  Write-Host "ProductType:" $objOSItem.ProductType
  Write-Host "RegisteredUser:" $objOSItem.RegisteredUser
  Write-Host "SerialNumber:" $objOSItem.SerialNumber
  Write-Host "ServicePackMajorVersion:" $objOSItem.ServicePackMajorVersion
  Write-Host "ServicePackMinorVersion:" $objOSItem.ServicePackMinorVersion
  Write-Host "SizeStoredInPagingFiles:" $objOSItem.SizeStoredInPagingFiles
  Write-Host "Status:" $objOSItem.Status
  Write-Host "SuiteMask:" $objOSItem.SuiteMask
  Write-Host "SystemDevice:" $objOSItem.SystemDevice
  Write-Host "SystemDirectory:" $objOSItem.SystemDirectory
  Write-Host "SystemDrive:" $objOSItem.SystemDrive
  Write-Host "TotalSwapSpaceSize:" $objOSItem.TotalSwapSpaceSize
  Write-Host "TotalVirtualMemorySize:" $objOSItem.TotalVirtualMemorySize
  Write-Host "TotalVisibleMemorySize:" $objOSItem.TotalVisibleMemorySize
  Write-Host "Version:" $objOSItem.Version
  Write-Host "WindowsDirectory" $objOSItem.WindowsDirectory
    
}