Powershell scripts on 2008 R2
Posted: 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?