I need to create a package to copy a folder to C:\Program Files of all Clients. Have created a package containing the required folder and a batch file with below contents:
@echo off
echo f | xcopy /i/q/H/E/Y/v *.* "C:\Program Files"
If I double click on batch file on a system, it executes successfully.
However, when run using SCCM, the package stucks while downloading into system cache and then eventually fails. Size of the package is 150 MB. And the size of package in SCCM cache of client varies from 1 MB - 50 MB.
Below is the snapshot of Execmgr logs on a client.
Execution Request for package ODC003E1 program Travelbox Test 2 state change from NotExist to AdvancedDownload
execmgr
4/13/2015 4:25:09 PM
24136 (0x5E48)
Mandatory execution requested for program Travelbox Test 2 and advertisement ODC202C7
execmgr
4/13/2015 4:25:09 PM
22792 (0x5908)
Creating mandatory request for advert ODC202C7, program Travelbox Test 2, package ODC003E1
execmgr
4/13/2015 4:25:09 PM
22792 (0x5908)
Policy arrived for parent package ODC003E1 program Travelbox Test 2
execmgr
4/13/2015 4:25:09 PM
22564 (0x5824)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(2057)]
instance of SoftDistProgramOfferReceivedEvent
{
AdvertisementId = "ODC202C7";
ClientID = "GUID:7808AA09-DC9A-4434-A61E-6793BDA218FB";
DateTime = "20150413152509.389000+000";
MachineName = "DCZC431089S";
ProcessID = 3812;
SiteCode = "ODC";
ThreadID = 22564;
};
execmgr
4/13/2015 4:25:09 PM
22564 (0x5824)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(2057)]
instance of SoftDistWaitingContentEvent
{
AdvertisementId = "ODC202C7";
ClientID = "GUID:7808AA09-DC9A-4434-A61E-6793BDA218FB";
DateTime = "20150413152509.405000+000";
MachineName = "DCZC431089S";
PackageName = "ODC003E1";
PackageVersion = "1";
ProcessID = 3812;
ProgramName = "Travelbox Test 2";
SiteCode = "ODC";
ThreadID = 22792;
};
execmgr
4/13/2015 4:25:09 PM
22792 (0x5908)
Successfully raised SoftDistWaitingContentEvent event for program Travelbox Test 2
execmgr
4/13/2015 4:25:09 PM
22792 (0x5908)
Execution Request for package ODC003E1 program Travelbox Test 2 state change from WaitingDependency to WaitingContent
execmgr
4/13/2015 4:25:09 PM
22792 (0x5908)
Mandatory execution requested for program Travelbox Test 2 and advertisement ODC202C8
execmgr
4/13/2015 5:38:22 PM
22732 (0x58CC)
Creating mandatory request for advert ODC202C8, program Travelbox Test 2, package ODC003E1
execmgr
4/13/2015 5:38:22 PM
22732 (0x58CC)
Policy arrived for parent package ODC003E1 program Travelbox Test 2
execmgr
4/13/2015 5:38:22 PM
22344 (0x5748)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(2057)]
instance of SoftDistProgramOfferReceivedEvent
{
AdvertisementId = "ODC202C8";
ClientID = "GUID:7808AA09-DC9A-4434-A61E-6793BDA218FB";
DateTime = "20150413163822.624000+000";
MachineName = "DCZC431089S";
ProcessID = 3812;
SiteCode = "ODC";
ThreadID = 22344;
};
execmgr
4/13/2015 5:38:22 PM
22344 (0x5748)
Requesting content from CAS for package ODC003E1 version 1
execmgr
4/13/2015 5:38:22 PM
22732 (0x58CC)
Successfully created a content request handle {67ECCA15-5826-48C3-B6EE-4F78FD8727CA} for the package ODC003E1 version 1
execmgr
4/13/2015 5:38:22 PM
22732 (0x58CC)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(2057)]
instance of SoftDistWaitingContentEvent
{
AdvertisementId = "ODC202C8";
ClientID = "GUID:7808AA09-DC9A-4434-A61E-6793BDA218FB";
DateTime = "20150413163822.936000+000";
MachineName = "DCZC431089S";
PackageName = "ODC003E1";
PackageVersion = "1";
ProcessID = 3812;
ProgramName = "Travelbox Test 2";
SiteCode = "ODC";
ThreadID = 22732;
};
execmgr
4/13/2015 5:38:22 PM
22732 (0x58CC)
Successfully raised SoftDistWaitingContentEvent event for program Travelbox Test 2
execmgr
4/13/2015 5:38:22 PM
22732 (0x58CC)
Execution Request for package ODC003E1 program Travelbox Test 2 state change from NotExist to WaitingContent
execmgr
4/13/2015 5:38:22 PM
22732 (0x58CC)
Content is available for program Travelbox Test 2.
execmgr
4/13/2015 5:38:22 PM
23388 (0x5B5C)
CExecutionRequest::Service Windows Manager has allowed us to run.
execmgr
4/13/2015 5:38:22 PM
23388 (0x5B5C)
Executing program Test2.bat in Admin context
execmgr
4/13/2015 5:38:22 PM
23388 (0x5B5C)
Execution Manager timer has been fired.
execmgr
4/13/2015 5:38:22 PM
18276 (0x4764)
Execution Request for package ODC003E1 program Travelbox Test 2 state change from WaitingContent to NotifyExecution
execmgr
4/13/2015 5:38:22 PM
23388 (0x5B5C)
Checking content location \\SVAAOFFSCM01.VAA.VTG.LOCAL\SMSPKGE$\ODC003E1\ for use
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Successfully selected content location \\SVAAOFFSCM01.VAA.VTG.LOCAL\SMSPKGE$\ODC003E1
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
GetFileVersionInfoSize failed for file \\SVAAOFFSCM01.VAA.VTG.LOCAL\SMSPKGE$\ODC003E1\Test2.bat, error 1812
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Executing program as a script
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Successfully prepared command line "\\SVAAOFFSCM01.VAA.VTG.LOCAL\SMSPKGE$\ODC003E1\Test2.bat"
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Command line = "\\SVAAOFFSCM01.VAA.VTG.LOCAL\SMSPKGE$\ODC003E1\Test2.bat", Working Directory = \\SVAAOFFSCM01.VAA.VTG.LOCAL\SMSPKGE$\ODC003E1\
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Created Process for the passed command line
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(2057)]
instance of SoftDistProgramStartedEvent
{
AdvertisementId = "ODC202C8";
ClientID = "GUID:7808AA09-DC9A-4434-A61E-6793BDA218FB";
CommandLine = "\"\\\\SVAAOFFSCM01.VAA.VTG.LOCAL\\SMSPKGE$\\ODC003E1\\Test2.bat\"";
DateTime = "20150413163823.045000+000";
MachineName = "DCZC431089S";
PackageName = "ODC003E1";
ProcessID = 3812;
ProgramName = "Travelbox Test 2";
SiteCode = "ODC";
ThreadID = 23388;
UserContext = "NT AUTHORITY\\SYSTEM";
WorkingDirectory = "\\\\SVAAOFFSCM01.VAA.VTG.LOCAL\\SMSPKGE$\\ODC003E1\\";
};
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Raised Program Started Event for Ad:ODC202C8, Package:ODC003E1, Program: Travelbox Test 2
execmgr
4/13/2015 5:38:23 PM
23388 (0x5B5C)
Program exit code 1
execmgr
4/13/2015 5:38:27 PM
22732 (0x58CC)
Looking for MIF file to get program status
execmgr
4/13/2015 5:38:27 PM
22732 (0x58CC)
Script for Package:ODC003E1, Program: Travelbox Test 2 failed with exit code 1
execmgr
4/13/2015 5:38:27 PM
22732 (0x58CC)
Raising event:
[SMS_CodePage(850), SMS_LocaleID(2057)]
instance of SoftDistProgramErrorEvent
{
AdvertisementId = "ODC202C8";
ClientID = "GUID:7808AA09-DC9A-4434-A61E-6793BDA218FB";
DateTime = "20150413163827.085000+000";
ExitCode = "1";
MachineName = "DCZC431089S";
PackageName = "ODC003E1";
ProcessID = 3812;
ProgramName = "Travelbox Test 2";
SiteCode = "ODC";
ThreadID = 22732;
UserContext = "NT AUTHORITY\\SYSTEM";
};
execmgr
4/13/2015 5:38:27 PM
22732 (0x58CC)
Raised Program Error Event for Ad:ODC202C8, Package:ODC003E1, Program: Travelbox Test 2
execmgr
4/13/2015 5:38:27 PM
22732 (0x58CC)
Execution is complete for program Travelbox Test 2. The exit code is 1, the execution status is FailureNonRetry
execmgr
4/13/2015 5:38:27 PM
23792 (0x5CF0)
Please help.