Get-WMIObject Win32_OperatingSystem Get-WMIObject Win32_OperatingSystem | fl Name, BuildNumber, Version $os = Get-WMIObject Win32_OperatingSystem $os.Name $os.Caption Get-WMIObject Win32_OperatingSystem -ComputerName web-2008R2 | fl Name, BuildNumber, Version $c = Get-Credential Get-WMIObject Win32_OperatingSystem -ComputerName web-2008R2 -Credential $c | fl Name, BuildNumber, Version Get-WMIObject Win32_Product -Filter "Vendor like 'Oracle%'" $java = get-wmiobject Win32_Product -Filter "Vendor like 'Oracle%'" if($java -ne $null) { Add-Content $logfile -value "Java is installed." } Get-Counter -Counter "\Processor(_Total)\% Processor Time" Get-Counter -Counter "\Processor(_Total)\% Processor Time" -SampleInterval 5 -MaxSamples 10 $samples = Get-Counter -Counter "\Processor(_Total)\% Processor Time" -SampleInterval 5 -MaxSamples 10 $samples.CounterSamples.CookedValue | Measure-Object -Average ('\Memory\Available MBytes', 'under', 500)