Sorry, I was out yesterday.
Below are the results of the execmgr.log for the package (runs as administrator).
I have not tested my script as "narcoticoo" mentioned. I will do that next.
Policy arrived for parent package CB100084 program PowerShell Test 2 execmgr 3/25/2014 11:56:19 AM 4796 (0x12BC)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="CB100084",ProgramID="PowerShell Test 2", actionType 6l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 3/25/2014 11:56:19 AM 4796 (0x12BC)
Requesting content from CAS for package CB100084 version 2 execmgr 3/25/2014 11:56:19 AM 4692 (0x1254)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramOfferReceivedEvent
{
AdvertisementId = "CB1200F3";
ClientID = "GUID:3CA194A1-349B-40FF-B155-94D919C14E86";
DateTime = "20140325185619.366000+000";
MachineName = "ComputerName";
ProcessID = 3812;
SiteCode = "CB1";
ThreadID = 4796;
};
execmgr 3/25/2014 11:56:19 AM 4796 (0x12BC)
Successfully created a content request handle {DAE42B8F-06A0-4FD3-A338-FC8BC09756C7} for the package CB100084 version 2 execmgr 3/25/2014 11:56:19 AM 4692 (0x1254)
Program PowerShell Test 2 change to state STATE_ADVANCED_DOWNLOAD content available execmgr 3/25/2014 11:56:19 AM 4692 (0x1254)
Execution Request for advert CB1200F3 package CB100084 program PowerShell Test 2 state change from NotExist to AdvancedDownload execmgr 3/25/2014 11:56:19 AM 4692 (0x1254)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="CB100084",ProgramID="PowerShell Test 2", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 3/25/2014 11:56:19 AM 4692 (0x1254)
Mandatory execution requested for program PowerShell Test 2 and advertisement CB1200F3 execmgr 3/25/2014 11:56:19 AM 1180 (0x049C)
Creating mandatory request for advert CB1200F3, program PowerShell Test 2, package CB100084 execmgr 3/25/2014 11:56:19 AM 1180 (0x049C)
An existing MTC token was not supplied, using ExecutionRequest's Id as MTC token and this execution request is the owner of resultant MTC task. execmgr 3/25/2014 11:56:19 AM 1180 (0x049C)
Request a MTC task for execution request of package CB100084, program PowerShell Test 2 with request id: {9D6705B3-875B-4926-8957-5C22FF80BA31} execmgr 3/25/2014 11:56:19 AM 1180 (0x049C)
Execution Request for advert CB1200F3 package CB100084 program PowerShell Test 2 state change from WaitingDependency to Ready execmgr 3/25/2014 11:56:20 AM 1180 (0x049C)
MTC task with id {9D6705B3-875B-4926-8957-5C22FF80BA31}, changed state from 0 to 4 execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="CB100084",ProgramID="PowerShell Test 2", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 3/25/2014 11:56:20 AM 1180 (0x049C)
MTC signaled SWD execution request with program id: PowerShell Test 2, package id: CB100084 for execution. execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Sending ack to MTC for task with id: {9D6705B3-875B-4926-8957-5C22FF80BA31} execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Executing program powershell.exe -executionpolicy bypass -file .\ietaskkill.ps1 in Admin context execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Execution Request for advert CB1200F3 package CB100084 program PowerShell Test 2 state change from Ready to NotifyExecution execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="CB100084",ProgramID="PowerShell Test 2", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Checking content location C:\windows\ccmcache\a for use execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Successfully selected content location C:\windows\ccmcache\a execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Executing program as a script execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Found executable file powershell.exe with complete path C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Successfully prepared command line "C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file .\ietaskkill.ps1 execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Command line = "C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file .\ietaskkill.ps1, Working Directory = C:\windows\ccmcache\a\ execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Running "C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -executionpolicy bypass -file .\ietaskkill.ps1 with 32bitLauncher execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Created Process for the passed command line execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramStartedEvent
{
AdvertisementId = "CB1200F3";
ClientID = "GUID:3CA194A1-349B-40FF-B155-94D919C14E86";
CommandLine = "\"C:\\windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -executionpolicy bypass -file .\\ietaskkill.ps1";
DateTime = "20140325185620.269000+000";
MachineName = "ComputerName";
PackageName = "CB100084";
ProcessID = 3812;
ProgramName = "PowerShell Test 2";
SiteCode = "CB1";
ThreadID = 4796;
UserContext = "NT AUTHORITY\\SYSTEM";
WorkingDirectory = "C:\\windows\\ccmcache\\a\\";
};
execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Raised Program Started Event for Ad:CB1200F3, Package:CB100084, Program: PowerShell Test 2 execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="CB100084",ProgramID="PowerShell Test 2", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="CB100084",ProgramID="PowerShell Test 2", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)
MTC task with id {9D6705B3-875B-4926-8957-5C22FF80BA31}, changed state from 4 to 5 execmgr 3/25/2014 11:56:20 AM 4796 (0x12BC)