Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Third Party Tools

Thread Tools Rate Thread Display Modes
Old 03-16-2010, 04:57 PM
ericp ericp is online now
Registered User
Join Date: 06-07-2006
Posts: 17
Powershell, Windows 2008 R2, VBP 6.7a and me :)

Short of upgrading to v7.x of VBP, is there something I'm missing getting Powershell commands from working?

Whenever I try to run a 'shell script I get:

File C:\Users\VMMSER~1\AppData\Local\Temp\1\VisDB65.tmp.ps1 cannot be loaded be
cause the execution of scripts is disabled on this system. Please see "get-help
 about_signing" for more details.
At line:1 char:55
+ C:\Users\VMMSER~1\AppData\Local\Temp\1\VisDB65.tmp.ps1 <<<< 
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException
If I run:
PS C:\Users\vmmservice> get-ExecutionPolicy
PS C:\Users\vmmservice>
I can get the same bld file (a sample BLD provided in these forums, actually) to run properly in WinXP, but I can't get it to run in Win2k8R2.

I run VBP as Administrator, in WinXP SP3 compatibility mode. I've tried changing the DEP to exclude VBP, however, that just crashes VBP on startup.

Thanks in advance!

Reply With Quote
Old 03-16-2010, 05:09 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,757
Make sure you've set the execution policy in the 32-bit version of PowerShell or that you're invoking the 64-bit version of PowerShell from Visual Build (i.e., %WINDIR%\Sysnative\WindowsPowerShell\v1.0\powershe ll.exe in the Override field on the Options tab).
Reply With Quote
Old 03-17-2010, 09:23 AM
ericp ericp is online now
Registered User
Join Date: 06-07-2006
Posts: 17

'Unrestricting' the 32bit version was the key.

Thank you again!

Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 10:28 PM.

Copyright 1999-2019 Kinook Software, Inc.