I must be missing something simple here. I have a package with a program that runs a PowerShell script to remove QuickTime. I've tested the script, it works fine. I ran it from the command line as specified below and it worked.
Powershell.exe -executionpolicy Bypass -file .\remove_qt.ps1
But, when I deploy the package, I get the following in execmgr.log:
Executing program "Powershell.exe -executionpolicy Bypass -file
.\remove_qt.ps1" in Admin context execmgr 4/15/2016
10:35:49 AM 5192 (0x1448)
Execution Request for advert CMC2008D package CMC002D6 program Uninstall
QuickTime state change from Ready to NotifyExecution execmgr
4/15/2016 10:35:49 AM 5192 (0x1448)
Raising client SDK event for class CCM_Program, instance
CCM_Program.PackageID="CMC002D6",ProgramID="Uninstall QuickTime", actionType
1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l
execmgr 4/15/2016 10:35:49 AM 5192 (0x1448)
Checking content location C:\WINDOWS\ccmcache\y for use execmgr
4/15/2016 10:35:50 AM 5192 (0x1448)
Successfully selected content location C:\WINDOWS\ccmcache\y
execmgr 4/15/2016 10:35:50 AM 5192 (0x1448)
Executing program as a script due to file association execmgr
4/15/2016 10:35:50 AM 5192 (0x1448)
Invalid data file "Powershell.exe -executionpolicy Bypass -file
.\remove_qt.ps1" to execute using file association execmgr
4/15/2016 10:35:50 AM 5192 (0x1448)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramBadEnvironmentEvent
{
AdvertisementId = "CMC2008D";
ClientID = "GUID:5695ee49-00d7-4e49-814c-2bc705c3819f";
CommandLine = "\"Powershell.exe -executionpolicy Bypass
-file .\\remove_qt.ps1\"";
DateTime = "20160415173550.115000+000";
DriveLetter = "";
MachineName = "V-S52477-W7D";
PackageName = "CMC002D6";
ProcessID = 3680;
ProgramName = "Uninstall QuickTime";
SiteCode = "CMC";
ThreadID = 5192;
Win32ErrorCode = 2147942402;
WorkingDirectory = "";
};
execmgr 4/15/2016 10:35:50 AM 5192 (0x1448)
Raised Program Bad Environment Event for Ad:CMC2008D, Package:CMC002D6,
Program: Uninstall QuickTime execmgr 4/15/2016
10:35:50 AM 5192 (0x1448)
EnterRsRuningState failed to run script "Powershell.exe -executionpolicy
Bypass -file .\remove_qt.ps1" 0x87d01106 execmgr
4/15/2016 10:35:50 AM 5192 (0x1448)
Fatal error 0x87d01106 enountered for program Uninstall QuickTime. This
program will not retry. execmgr 4/15/2016
10:35:50 AM 5192 (0x1448)
Best Regards,
Mike Murray
Desktop Management Coordinator - IT Support Services
California State University, Chico
530.898.4357
<mailto:[email protected]> [email protected]
smime.p7s
Description: S/MIME cryptographic signature
