Skip to content

Instantly share code, notes, and snippets.

@jamiechalmerzlp
Created August 11, 2022 16:22
Show Gist options
  • Select an option

  • Save jamiechalmerzlp/2822494946646b8123d69b9886aa00f2 to your computer and use it in GitHub Desktop.

Select an option

Save jamiechalmerzlp/2822494946646b8123d69b9886aa00f2 to your computer and use it in GitHub Desktop.
if (test-path HKLM:\Software\Microsoft\Office\14.0\Outlook) {$bitness = (get-itemproperty HKLM:\Software\Microsoft\Office\14.0\Outlook).Bitness}
if (test-path HKLM:\Software\Microsoft\Office\15.0\Outlook) {$bitness = (get-itemproperty HKLM:\Software\Microsoft\Office\15.0\Outlook).Bitness}
if (test-path HKLM:\Software\Microsoft\Office\16.0\Outlook) {$bitness = (get-itemproperty HKLM:\Software\Microsoft\Office\16.0\Outlook).Bitness}
if (test-path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Office\14.0\Outlook) {$bitness = (get-itemproperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Office\14.0\Outlook).Bitness}
if (test-path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook) {$bitness = (get-itemproperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook).Bitness}
if (test-path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook) {$bitness = (get-itemproperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook).Bitness}
write-host $Bitness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment