Page 1 of 1

Powershell scripts on 2008 R2

Posted: Wed Sep 02, 2015 5:19 am
by Wimpie
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?

Re: Powershell scripts on 2008 R2

Posted: Wed Sep 02, 2015 1:07 pm
by FrancescoT
Dear Wimpie,

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

I'll try to have a look.

Regards