# How detect version 32bit / 64bit of client

**URL:** <https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103>\
**Category:** Ignition\
**Created:** [February 14, 2022, 1:55pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103 "2022-02-14T13:55:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergioS](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SergioS](https://forum.inductiveautomation.com/u/SergioS)\
**Post date:** [February 14, 2022, 1:55pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103/1 "2022-02-14T13:55:17Z")

</div>

Good morning,  
actually I have a project in 7.9.16 that I want migrate to V.8 .  
I have more of 115 clients, and I want to know if all client are 64bit or not. (I don’t have direct access to all clients…)

There is a way to read on application the version of OS 32bit/64bit ?  
If exist I think to log this value into a table for have a map of version actually on my parc.

Thanks

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 14, 2022, 2:21pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103/2 "2022-02-14T14:21:39Z")

</div>

Try running a script like this:

```auto
from java.lang import System

print System.getProperty("os.arch")

```

I think 32-bit systems will print “x86”.

---

<div class="post-metadata">

**Author:** ![SergioS](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SergioS](https://forum.inductiveautomation.com/u/SergioS)\
**Post date:** [February 14, 2022, 4:08pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103/3 "2022-02-14T16:08:49Z")

</div>

Your solution work fine!

Thanks

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 14, 2022, 4:26pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103/4 "2022-02-14T16:26:40Z")

</div>

You can also use `system.util.getProperty` to save the import. It’s the exact same mechanism, so it’s not like the answer will be different, but it is a one-liner.

[https://docs.inductiveautomation.com/display/DOC81/system.util.getProperty](https://docs.inductiveautomation.com/display/DOC81/system.util.getProperty)

---

<div class="post-metadata">

**Author:** ![SergioS](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@SergioS](https://forum.inductiveautomation.com/u/SergioS)\
**Post date:** [February 14, 2022, 4:53pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103/5 "2022-02-14T16:53:19Z")

</div>

For me solution proposed from @Kevin.Herron and from @paul-griffith show arch of java used on client, but not of OS client.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 14, 2022, 5:10pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103/6 "2022-02-14T17:10:04Z")

</div>

Are these all Windows systems? You could try reading some environment variables (`System.getenv`, after the same import Kevin had above):

> **[PROCESSOR\_ARCHITEW6432](https://blog.differentpla.net/blog/2013/03/10/processor-architew6432/)**
>
> What’s the PROCESSOR\_ARCHITEW6432 environment variable for?

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [February 14, 2022, 5:55pm UTC](https://forum.inductiveautomation.com/t/how-detect-version-32bit-64bit-of-client/56103/7 "2022-02-14T17:55:27Z")

</div>

If you are on windows, you can also check for the existence of the Program Files (x86) folder

```auto
if system.file.fileExists("C:\\Program Files (x86)"):
	print "64 bit"
else:
	print "32 bit"

```
