Powershell scripts on 2008 R2

Got a problem you cannot solve? Try here.
Wimpie
Posts: 4
Joined: Mon Nov 30, 2009 8:12 am

Powershell scripts on 2008 R2

Postby Wimpie » Wed Sep 02, 2015 5:19 am

Hi, I have written a Powershell script that creates a txt file. This script is run via the Run Program command in Installaware (run powershell.exe - parameters - location and name of ps1 file). It works and creates a txt file in Server 2012, but doesn't create a text file in 2008 R2 - giving a Result of 1. The ps1 file DOES work in 2008 R2 if it's run manually. The problem is running the ps1 file through Installaware in 2008 R2. We've run it as administrator, and the UAC is as low as it gets, but with no success. Also, from what we've seen this is not machine-specific, it's OS specific. - any ideas please?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Powershell scripts on 2008 R2

Postby FrancescoT » Wed Sep 02, 2015 1:07 pm

Dear Wimpie,

Are you able to share a very minimal project that replicates the issue?

I'll try to have a look.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 120 guests