«

Dec 28

Check Operating System (OS) version

You can check for witch OS version a computer is running in several ways. Here is one way you can do it in a script for example installing applications.

################ Check OS Start ################

$os = Get-ItemProperty -Path HKLM:\HARDWARE\DESCRIPTION\System\CentralProcessor\0
$os = $os.Identifier

if ($os.Contains(“Intel64”) )
{
$os = “x64”
}
else
{
$os = “x86”
}

################ Check OSĀ End ################

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>