# Build in action that check OS and platform?

**URL:** https://www.finalbuilder.com/forums/t/build-in-action-that-check-os-and-platform/1485
**Category:** Discussion
**Created:** [May 17, 2010, 3:32am UTC](https://www.finalbuilder.com/forums/t/build-in-action-that-check-os-and-platform/1485 "2010-05-17T03:32:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![efridman](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@efridman](https://www.finalbuilder.com/forums/u/efridman)
#### Post date: [May 17, 2010, 3:32am UTC](https://www.finalbuilder.com/forums/t/build-in-action-that-check-os-and-platform/1485/1 "2010-05-17T03:32:19Z")

</div>

&nbsp;

Hi

&nbsp;

Dons final builder has a build in action \ function that checks for the machine OS ( XP, 2003, Win7 etc ) and the machine Platform ( 32 \ 64 bit ) ?

Thanks.

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [May 18, 2010, 12:13pm UTC](https://www.finalbuilder.com/forums/t/build-in-action-that-check-os-and-platform/1485/2 "2010-05-18T12:13:30Z")

</div>

Hi,   
  
 FinalBuilder does not have an action that checks the OS and bitness of the current machine but you’re able to use the Run Script action to execute the following python script which leverages the .NET 4.0 framework to get the information:   
  
 import System   
 print System.Environment.OSVersion.VersionString   
 print System.Environment.Is64OperatingSystem #requires .NET 4.0   
  
 More information on the Environment class: [http://msdn.microsoft.com/en-us/library/system.environment\_members(v=VS.100).aspx](http://msdn.microsoft.com/en-us/library/system.environment_members(v=VS.100).aspx)   
  
 Regards,   
 Paul.
