欢迎光临
我们一直在努力
"

Powershell 32-bit and 64-bit version

Powershell 32-bit and 64-bit version

64-bit: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
32-bit: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe

alternative way to determine if your are running 32 version or 64 version:
PS C:\Windows\System32\WindowsPowerShell\v1.0> if ([System.IntPtr]::Size -eq 4) { “32-bit” }
PS C:\Windows\System32\WindowsPowerShell\v1.0> if ([System.IntPtr]::Size -eq 8) { “64-bit” }
64-bit
PS C:\Windows\System32\WindowsPowerShell\v1.0> [Environment]::Is64BitProcess
True
==============
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> if ([System.IntPtr]::Size -eq 4) { “32-bit” }
32-bit
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0>  if ([System.IntPtr]::Size -eq 8) { “64-bit” }
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> [Environment]::Is64BitProcess
False

==============

http://msdn.microsoft.com/library/system.intptr.aspx

转载请注明: 转载自Legend‘s BLog

本文链接地址: Powershell 32-bit and 64-bit version



未经允许不得转载:Legend‘s BLog » Powershell 32-bit and 64-bit version

分享到:更多 ()

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

无觅相关文章插件,快速提升流量