# C++ Builder action - Access CompilerOpt parameter

**URL:** https://www.finalbuilder.com/forums/t/c-builder-action-access-compileropt-parameter/2013
**Category:** Discussion
**Created:** [July 13, 2012, 6:24am UTC](https://www.finalbuilder.com/forums/t/c-builder-action-access-compileropt-parameter/2013 "2012-07-13T06:24:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lahatch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@lahatch](https://www.finalbuilder.com/forums/u/lahatch)
#### Post date: [July 13, 2012, 6:24am UTC](https://www.finalbuilder.com/forums/t/c-builder-action-access-compileropt-parameter/2013/1 "2012-07-13T06:24:16Z")

</div>

Hi,

I&nbsp;use script editor in powershell to perform change on a C++ builder action.

Previously, it was made in javascript like that :

Action.CompilerOpt.PreCompiledHeaders = pcNone;

Now, I try the following in powershell :

$Action.CompilerOpt.PreCompiledHeaders = $pcNone

but I have the following error :

_Property 'PreCompiledHeaders' cannot be found on this object; make sure it exists and is settable_.

$Action.CompilerOpt is of type System.\_\_ComObject, then how can I access and change its properties ?

&nbsp;

Rachel

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 14, 2012, 9:12am UTC](https://www.finalbuilder.com/forums/t/c-builder-action-access-compileropt-parameter/2013/2 "2012-07-14T09:12:48Z")

</div>

This is a limitation in the Powershell support, only root level objects are exposed fully. You will have to use Javascrpt for that.

---

<div class="post-metadata">

### Author: ![lahatch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@lahatch](https://www.finalbuilder.com/forums/u/lahatch)
#### Post date: [July 16, 2012, 9:07am UTC](https://www.finalbuilder.com/forums/t/c-builder-action-access-compileropt-parameter/2013/3 "2012-07-16T09:07:39Z")

</div>

Oh, ok thanks. Do you know if it will be like that in future release ?
