Fixed architecture detection bug in Get-PEB

I was checking processor architecture when I should have been checking
OS architecture.
This commit is contained in:
Matt Graeber 2013-05-31 18:56:57 -04:00
parent 9b4b3dcc73
commit 6e5338c8a3
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/aa813706(v=vs.85).aspx
return
}
$OSArchitecture = (Get-WmiObject Win32_Processor).DataWidth
$OSArchitecture = [Int](Get-WmiObject Win32_OperatingSystem).OSArchitecture.Split('-')[0]
try { $NativeUtils = [NativeUtils] } catch [Management.Automation.RuntimeException] # Only build the assembly if it hasn't already been defined
{