No frills...
Just wanted a consistent way of determining if the operating system was 32 or 64 bit regardless of PowerShell version or OS.
Function OSIs-64Bit{if([IntPtr]::Size-eq 4){$false}else{$true}}
Paste atop a script and use in an if statement like:
if(OSIs-64Bit){'Do some wicked stuff'}
if(OSIs-64Bit){'Do some wicked stuff'}
No comments:
Post a Comment