# Help creating script to see if 32 bit or 64 bit office then change a registry key accordingly

**URL:** <https://forums.powershell.org/t/help-creating-script-to-see-if-32-bit-or-64-bit-office-then-change-a-registry-key-accordingly/19476>\
**Category:** PowerShell Help\
**Created:** [May 31, 2022, 2:54am UTC](https://forums.powershell.org/t/help-creating-script-to-see-if-32-bit-or-64-bit-office-then-change-a-registry-key-accordingly/19476 "2022-05-31T02:54:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wogboy112](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/wogboy112/32/2413_2.png) [@wogboy112](https://forums.powershell.org/u/wogboy112)\
**Post date:** [May 31, 2022, 2:54am UTC](https://forums.powershell.org/t/help-creating-script-to-see-if-32-bit-or-64-bit-office-then-change-a-registry-key-accordingly/19476/1 "2022-05-31T02:54:06Z")

</div>

Hi, I want to run a script on all our workstations that check if they are running 32 bit or 64 bit office then update registry key for another piece of software.

anyone done anything like this before? before you ask we are runnign 32bit on some machines due to an old piece of software they need doesnt support 64bit

---

<div class="post-metadata">

**Author:** ![tbingeman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tbingeman/32/2122_2.png) [@tbingeman](https://forums.powershell.org/u/tbingeman)\
**Post date:** [May 31, 2022, 5:01am UTC](https://forums.powershell.org/t/help-creating-script-to-see-if-32-bit-or-64-bit-office-then-change-a-registry-key-accordingly/19476/2 "2022-05-31T05:01:27Z")

</div>

Wogboy112,

Welcome to the forums. I am sure there is a way to perform this through PowerShell. What have you tried so far in regard to this?

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [May 31, 2022, 4:16pm UTC](https://forums.powershell.org/t/help-creating-script-to-see-if-32-bit-or-64-bit-office-then-change-a-registry-key-accordingly/19476/3 "2022-05-31T16:16:09Z")

</div>

This might be a cheesy way to get test for 32 bit …

```auto
($Word = New-Object -ComObject 'Word.Application').Path -Match 'x86'

```

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:17pm UTC](https://forums.powershell.org/t/help-creating-script-to-see-if-32-bit-or-64-bit-office-then-change-a-registry-key-accordingly/19476/4 "2024-05-16T20:17:52Z")

</div>

Closed on May 16, 2024, 8:17pm UTC


