Three simple functions I saw the basis of a few ways back. Nothing special. Just good for reference. To test if a system is x86, run this:
functionIsx86
{
switch([IntPtr]::Size)
{
4
{
$true
}
8
{
$false
}
}
}
To test if a system is x64, use this approach:
functionIsx64
{
switch([IntPtr]::Size)
{
4
{
$false
}
8
{
$true
}
}
}
Another way to approach it:
functionGet-ProcessorBitWidth
{
switch([IntPtr]::Size)
{
2
{
return16
}
4
{
return32
}
8
{
return64
}
}
}
Much more complex tricks can be done, but, these are good to know about.
About lamsim
Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.