Tuesday, September 21, 2010

Powershell - How to check service packs on computers

Service pack of the operating system can found by calling the wmi object win32_operatingsystem. Following commands will enumerate the service pack 
$SP = gwmi win32_operatingsystem
$SP.serivepackmajoreversion

No comments: