Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

NEW Copy folder by SCCM Package Issue

  • Thread starter Thread starter tata789
  • Start date Start date
  • Replies Replies 0
  • Views Views 4K

tata789

Well-Known Member
Messages
73
Reaction score
5
Points
8
Hello
I need help to create command line batch file to move folder to User Desktop
I have folder in SCCM source location and in that folder have this 3 files
00000409
CmRcViewer.exe
RdpCoreSccm.dll
I create a SCCM Package and I create batch file to use for my command line and my command is

xcopy /E/Y/v Myservername\Software_folder\SCCM Remote\*.* C:\ Users\Public\Desktop\

when I deploy package it downloading fine but I get error Exit code 4, any help to fix my batch command line that will be good


for example

Script for Package:WMT00052, Program: Sccm 1802 Remote failed with exit code 4 execmgr 8/24/2018 12:27:46 PM 44836 (0xAF24)
MTC task with id {109B8BE8-5FDE-44E6-8D97-0228926992D2}, changed state from 4 to 5 execmgr 8/24/2018 12:27:46 PM 17284 (0x4384)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramErrorEvent
{
AdvertisementId = "WMT200C9";
ClientID = "GUID:c0532d6e-f154-4e24-9575-b87e2556f199";
DateTime = "20180824162746.817000+000";
ExitCode = "4";
MachineName = "W-606976";
PackageName = "WMT00052";
ProcessID = 43812;
ProgramName = "Sccm 1802 Remote";
SiteCode = "WMT";
ThreadID = 44836;
UserContext = "NT AUTHORITY\\SYSTEM";
};
execmgr 8/24/2018 12:27:46 PM 44836 (0xAF24)
Raised Program Error Event for Ad:WMT200C9, Package:WMT00052, Program: Sccm 1802 Remote execmgr 8/24/2018 12:27:46 PM 44836 (0xAF24)
Execution is complete for program Sccm 1802 Remote. The exit code is 4, the execution status is FailureRetry execmgr 8/24/2018 12:27:46 PM 32376 (0x7E78)
Requesting MTC to delete task with id: {109B8BE8-5FDE-44E6-8D97-0228926992D2} execmgr 8/24/2018 12:27:46 PM 32376 (0x7E78)
MTC task with id: {109B8BE8-5FDE-44E6-8D97-0228926992D2} deleted successfully. execmgr 8/24/2018 12:27:46 PM 32376 (0x7E78)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="WMT00052",ProgramID="Sccm 1802 Remote", actionType 10l, value Result:FALSE, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 8/24/2018 12:27:46 PM 32376 (0x7E78)
Requesting MTC to delete task with id: {109B8BE8-5FDE-44E6-8D97-0228926992D2} execmgr 8/24/2018 12:27:46 PM 32376 (0x7E78)
This execution request does not have a corresponding task in MTC. execmgr 8/24/2018 12:27:46 PM 32376 (0x7E78)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="WMT00052",ProgramID="Sccm 1802 Remote", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 8/24/2018 12:27:46 PM 32376 (0x7E78)

also if I can create package to c:\drive and shortcut on desktop for CmRcViewer.exe so user don't have to see all file in the folder
thank you
Arun
 
Last edited:
Back
Top