Deployment by Script or Package

Duchemin, Dominique 2,006 Reputation points
2022-10-03T23:49:02.203+00:00

Hello,

I have the PowerShell that I am deploying by Package:

Stop the BranchCache Service
sc stop "PeerDistSvc"
stop-service PeerDistSvc;

Disable the BranchCach Service
sc config "PeerDistSvc" start=disabled
Set-Service -Name PeerDistSvc -StartupType disabled;

Disable the BranchCache feature
Dism /online /Disable-Feature /FeatureName:peerdist /NoRestart;

===========================================================================

When launch locally & manually from ccmcache folder it works like a charm.
But when launch from the Deployment of a package I am getting an error:
it is successfully deployed as I see the package in the client ccmcache folder.
but no more step after this..

failed with exit code 4294770688

MTC task with id {B5DA90BD-C98F-47FD-8A75-591F216FEF97}, changed state from 4 to 5 execmgr 10/1/2022 9:16:07 PM 1256 (0x04E8)
Program exit code -196608 execmgr 10/1/2022 9:16:09 PM 5500 (0x157C)
Looking for MIF file to get program status execmgr 10/1/2022 9:16:09 PM 5500 (0x157C)
Script for Package:UCP00DB0, Program: ISS - Servers - Disabling BranchCache failed with exit code 4294770688
execmgr 10/1/2022 9:16:09 PM 5500 (0x157C)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramErrorEvent
{
AdvertisementId = "UCP208A6";
ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
DateTime = "20221002041609.851000+000";
ExitCode = "-196608";
MachineName = "VIPSCCMDP02";
PackageName = "UCP00DB0";
ProcessID = 1028;
ProgramName = "ISS - Servers - Disabling BranchCache";
SiteCode = "UCP";
ThreadID = 5500;
UserContext = "AD\abcdef";
};
execmgr 10/1/2022 9:16:09 PM 5500 (0x157C)
Raised Program Error Event for Ad:UCP208A6, Package:UCP00DB0, Program: ISS - Servers - Disabling BranchCache
execmgr 10/1/2022 9:16:09 PM 5500 (0x157C)
Execution is complete for program ISS - Servers - Disabling BranchCache. The exit code is -196608, the execution status is FailureNonRetry execmgr 10/1/2022 9:16:09 PM 2000 (0x07D0)
This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/1/2022 9:16:09 PM 2000 (0x07D0)
Not RS3+, this device is SCCM managed. execmgr 10/1/2022 9:16:09 PM 2000 (0x07D0)

Any idea why this failure?

Thanks,
Dom

Microsoft Security Intune Configuration Manager Application
Microsoft Security Intune Configuration Manager Other
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Garth 5,801 Reputation points
    2022-10-04T02:48:21.567+00:00

    and what happens when you test it it via the local system account? https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/

    1 person found this answer helpful.
    0 comments No comments

  2. Sherry Kissinger 5,526 Reputation points
    2022-10-04T17:02:16.487+00:00

    Question: you are running this as a Package/Program/Advertisement, right?

    "why not", make 3 seperate "programs" in that package.

    Program 1: just does sc stop "PeerDistSvc"
    Program 2: Just does sc config "PeerDistSvc" start=disabled
    Program 3: Just does Dism /online /Disable-Feature /FeatureName:peerdist /NoRestart

    Set Program 3 to "run another program first", of Program 2
    set Program 2 to "run another program first" of Program 1

    Advertise Program 3 only... because the client will run the other stuff first.

    =============

    OR... why not make this is a Task Sequence, with 3 tasks?

    =============

    Basically, I think it's "throwing" an error message because the DISM is within a 'batch file' or within a "powershell script", and in neither case are you "waiting for DISM to finish"... before the cmd or posh says "ok, I'm done here, hooray", when it's not really done running the dism.

    Perhaps, JUST PERHAPS, if you separate out each line into it's component parts, using older CM stuff (run another program first, or a TS based deployment) instead of trying to run a batch file, it'll at least make it easier for you to see 'which specific thing' is erroring.

    1 person found this answer helpful.
    0 comments No comments

  3. Duchemin, Dominique 2,006 Reputation points
    2022-10-04T03:35:17.12+00:00

    Hello,

    I did the test https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/
    everything works as it is written.
    the cmd.exe works but gives an error in the execmgr.log:

    Script for Package:UCP00DB1, Program: ISS - Servers - CMD failed with exit code 3221225786 execmgr 10/3/2022 8:40:59 PM 5832 (0x16C8)

    For my cmd job
    I miss a step so how to get more details than the execmgr.log to follow the 3 internal powershell steps inside the cmd command ...?

    /* Disabling-BranchCache.cmd

    ------------------------------------------------------------------------------------------------------------------------------

    @Echo on
    pushd "%~dp0"
    PowerShell.exe -nologo -noprofile -ExecutionPolicy bypass -file "Disabling-BranchCache.ps1"

    ------------------------------------------------------------------------------------------------------------------------------

    /* Disabling-BranchCache.ps1

    ------------------------------------------------------------------------------------------------------------------------------

    /*
    /* Stop the BranchCache Service
    /* sc stop "PeerDistSvc"
    stop-service PeerDistSvc;

    /* Disable the BranchCach Service
    /* sc config "PeerDistSvc" start=disabled
    Set-Service -Name PeerDistSvc -StartupType disabled;

    /* Disable the BranchCache feature
    Dism /online /Disable-Feature /FeatureName:peerdist /NoRestart;

    --------------------------------------------------------------------------------------------------------------------------------

    The job starts by itself which is good.
    It works better as two steps were completed "Stop the Service" & "Disable the Service" but the feature is still checked
    No error in the execmgr.log !!

    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 6l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:21 PM 8080 (0x1F90)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramOfferReceivedEvent
    {
    AdvertisementId = "UCP208AC";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    DateTime = "20221004023521.329000+000";
    MachineName = "VIPSCCMDP02";
    ProcessID = 2012;
    SiteCode = "UCP";
    ThreadID = 8080;
    };
    execmgr 10/3/2022 7:35:21 PM 8080 (0x1F90)
    Successfully created a content request handle {8E8A85D1-2532-43BC-961C-A6BDCED56C78} for the package UCP00DB0 version 8 execmgr 10/3/2022 7:35:21 PM 5128 (0x1408)
    Program ISS - Servers - Disabling BranchCache change to state STATE_ADVANCED_DOWNLOAD content in progress execmgr 10/3/2022 7:35:21 PM 5128 (0x1408)
    Execution Request for advert UCP208AC package UCP00DB0 program ISS - Servers - Disabling BranchCache state change from NotExist to AdvancedDownload execmgr 10/3/2022 7:35:21 PM 5128 (0x1408)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:21 PM 5128 (0x1408)
    Mandatory execution requested for program ISS - Servers - Disabling BranchCache and advertisement UCP208AC execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    Creating mandatory request for advert UCP208AC, program ISS - Servers - Disabling BranchCache, package UCP00DB0 execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    Not RS3+, this device is SCCM managed. execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistWaitingContentEvent
    {
    AdvertisementId = "UCP208AC";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    DateTime = "20221004023521.462000+000";
    MachineName = "VIPSCCMDP02";
    PackageName = "UCP00DB0";
    PackageVersion = "8";
    ProcessID = 2012;
    ProgramName = "ISS - Servers - Disabling BranchCache";
    SiteCode = "UCP";
    ThreadID = 2908;
    };
    execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    Successfully raised SoftDistWaitingContentEvent event for program ISS - Servers - Disabling BranchCache execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    Execution Request for advert UCP208AC package UCP00DB0 program ISS - Servers - Disabling BranchCache state change from WaitingDependency to WaitingContent execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:21 PM 2908 (0x0B5C)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:21 PM 680 (0x02A8)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:21 PM 4556 (0x11CC)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:21 PM 5128 (0x1408)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:21 PM 680 (0x02A8)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:22 PM 4556 (0x11CC)
    Processing [{8E8A85D1-2532-43BC-961C-A6BDCED56C78}, 0]: OnContentAvailable execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    Not RS3+, this device is SCCM managed. execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    [{8E8A85D1-2532-43BC-961C-A6BDCED56C78}]: Content Version 8 is available for advert UCP208AC, pkg: UCP00DB0, program ISS - Servers - Disabling BranchCache. execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    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 10/3/2022 7:35:24 PM 4556 (0x11CC)
    Request a MTC task for execution request of package UCP00DB0, program ISS - Servers - Disabling BranchCache with request id: {C51DBB38-B5E8-45A5-A4BD-6081EBB1F9FE} execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    Execution Request for advert UCP208AC package UCP00DB0 program ISS - Servers - Disabling BranchCache state change from WaitingContent to Ready execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    MTC task with id {C51DBB38-B5E8-45A5-A4BD-6081EBB1F9FE}, changed state from 0 to 4 execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    Processing [{8E8A85D1-2532-43BC-961C-A6BDCED56C78}, 0]: RemoveNotification execmgr 10/3/2022 7:35:24 PM 4556 (0x11CC)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Not RS3+, this device is SCCM managed. execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    MTC signaled SWD execution request with program id: ISS - Servers - Disabling BranchCache, package id: UCP00DB0 for execution. execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Sending ack to MTC for task with id: {C51DBB38-B5E8-45A5-A4BD-6081EBB1F9FE} execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Executing program Disabling-BranchCache.cmd in Admin context execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Execution Request for advert UCP208AC package UCP00DB0 program ISS - Servers - Disabling BranchCache state change from Ready to NotifyExecution execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Checking content location C:\Windows\ccmcache\1f for use execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Successfully selected content location C:\Windows\ccmcache\1f execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Executing program as a script execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Successfully prepared command line "C:\Windows\ccmcache\1f\Disabling-BranchCache.cmd" execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Command line = "C:\Windows\ccmcache\1f\Disabling-BranchCache.cmd", Working Directory = C:\Windows\ccmcache\1f\ execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Running "C:\Windows\ccmcache\1f\Disabling-BranchCache.cmd" with 32bitLauncher execmgr 10/3/2022 7:35:24 PM 6268 (0x187C)
    Created Process for the passed command line execmgr 10/3/2022 7:35:25 PM 6268 (0x187C)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramStartedEvent
    {
    AdvertisementId = "UCP208AC";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    CommandLine = ""C:\Windows\ccmcache\1f\Disabling-BranchCache.cmd"";
    DateTime = "20221004023525.200000+000";
    MachineName = "VIPSCCMDP02";
    PackageName = "UCP00DB0";
    ProcessID = 2012;
    ProgramName = "ISS - Servers - Disabling BranchCache";
    SiteCode = "UCP";
    ThreadID = 6268;
    UserContext = "NT AUTHORITY\SYSTEM";
    WorkingDirectory = "C:\Windows\ccmcache\1f\";
    };
    execmgr 10/3/2022 7:35:25 PM 6268 (0x187C)
    Raised Program Started Event for Ad:UCP208AC, Package:UCP00DB0, Program: ISS - Servers - Disabling BranchCache execmgr 10/3/2022 7:35:25 PM 6268 (0x187C)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:25 PM 6268 (0x187C)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:25 PM 6268 (0x187C)
    EvaluateRequestForExecution - Updated current running request execmgr 10/3/2022 7:35:25 PM 6268 (0x187C)
    MTC task with id {C51DBB38-B5E8-45A5-A4BD-6081EBB1F9FE}, changed state from 4 to 5 execmgr 10/3/2022 7:35:25 PM 6268 (0x187C)
    Program exit code 0 execmgr 10/3/2022 7:35:29 PM 792 (0x0318)
    Looking for MIF file to get program status execmgr 10/3/2022 7:35:29 PM 792 (0x0318)
    Script for Package:UCP00DB0, Program: ISS - Servers - Disabling BranchCache succeeded with exit code 0 execmgr 10/3/2022 7:35:29 PM 792 (0x0318)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramCompletedSuccessfullyEvent
    {
    AdvertisementId = "UCP208AC";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    DateTime = "20221004023529.332000+000";
    MachineName = "VIPSCCMDP02";
    PackageName = "UCP00DB0";
    ProcessID = 2012;
    ProgramName = "ISS - Servers - Disabling BranchCache";
    SiteCode = "UCP";
    ThreadID = 792;
    UserContext = "NT AUTHORITY\SYSTEM";
    };
    execmgr 10/3/2022 7:35:29 PM 792 (0x0318)
    Raised Program Success Event for Ad:UCP208AC, Package:UCP00DB0, Program: ISS - Servers - Disabling BranchCache execmgr 10/3/2022 7:35:29 PM 792 (0x0318)
    Execution is complete for program ISS - Servers - Disabling BranchCache. The exit code is 0, the execution status is Success execmgr 10/3/2022 7:35:29 PM 4556 (0x11CC)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/3/2022 7:35:29 PM 4556 (0x11CC)
    Not RS3+, this device is SCCM managed. execmgr 10/3/2022 7:35:29 PM 4556 (0x11CC)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 10l, value Result:TRUE ,SDKCallerId:, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:29 PM 4556 (0x11CC)
    Requesting MTC to delete task with id: {C51DBB38-B5E8-45A5-A4BD-6081EBB1F9FE} execmgr 10/3/2022 7:35:29 PM 4556 (0x11CC)
    MTC task with id: {C51DBB38-B5E8-45A5-A4BD-6081EBB1F9FE} deleted successfully. execmgr 10/3/2022 7:35:29 PM 4556 (0x11CC)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 7:35:29 PM 4556 (0x11CC)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/3/2022 8:31:11 PM 4960 (0x1360)
    Not RS3+, this device is SCCM managed. execmgr 10/3/2022 8:31:11 PM 4960 (0x1360)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/3/2022 8:31:11 PM 6340 (0x18C4)
    Not RS3+, this device is SCCM managed. execmgr 10/3/2022 8:31:11 PM 6340 (0x18C4)
    Policy is updated for Program: ISS - Servers - Disabling BranchCache, Package: UCP00DB0, Advert: UCP208AC execmgr 10/3/2022 8:31:11 PM 6340 (0x18C4)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB0",ProgramID="ISS - Servers - Disabling BranchCache", actionType 45l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/3/2022 8:31:11 PM 6340 (0x18C4)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/3/2022 8:31:11 PM 6340 (0x18C4)

    Thanks,
    Dom


  4. Duchemin, Dominique 2,006 Reputation points
    2022-10-04T16:21:44.887+00:00

    Hello,

    I tried to run the DISM line by itself locally and it works well...
    But from SCCM I still not executing anything but could not find anymore error in execmgr.log...
    Any other log to get the execution of the ps1 command itself and see why it does not do anything?
    I tried the ps1 as a deployment package ...
    I tried the ps1 in a cmd deployment package...
    both do nothing!!!

    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 45l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:12:28 AM 5188 (0x1444)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:21:20 AM 6092 (0x17CC)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:21:20 AM 6092 (0x17CC)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:21:20 AM 5432 (0x1538)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:21:20 AM 5432 (0x1538)
    Policy arrived for parent package UCP00DB2 program ISS - Servers - Disabling BranchCache FeatureONLY execmgr 10/4/2022 8:21:20 AM 6092 (0x17CC)
    Requesting content from CAS for package UCP00DB2 version 2. Content source flags 0x42 execmgr 10/4/2022 8:21:20 AM 5432 (0x1538)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 6l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:20 AM 6092 (0x17CC)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramOfferReceivedEvent
    {
    AdvertisementId = "UCP208B0";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    DateTime = "20221004152120.816000+000";
    MachineName = "VIPSCCMDP02";
    ProcessID = 2012;
    SiteCode = "UCP";
    ThreadID = 6092;
    };
    execmgr 10/4/2022 8:21:20 AM 6092 (0x17CC)
    Successfully created a content request handle {AE2FF943-65C6-4EF8-8CD3-0ADFDB33A93E} for the package UCP00DB2 version 2 execmgr 10/4/2022 8:21:20 AM 5432 (0x1538)
    Program ISS - Servers - Disabling BranchCache FeatureONLY change to state STATE_ADVANCED_DOWNLOAD content in progress execmgr 10/4/2022 8:21:20 AM 5432 (0x1538)
    Execution Request for advert UCP208B0 package UCP00DB2 program ISS - Servers - Disabling BranchCache FeatureONLY state change from NotExist to AdvancedDownload execmgr 10/4/2022 8:21:20 AM 5432 (0x1538)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:20 AM 5432 (0x1538)
    Mandatory execution requested for program ISS - Servers - Disabling BranchCache FeatureONLY and advertisement UCP208B0 execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    Creating mandatory request for advert UCP208B0, program ISS - Servers - Disabling BranchCache FeatureONLY, package UCP00DB2 execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistWaitingContentEvent
    {
    AdvertisementId = "UCP208B0";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    DateTime = "20221004152120.940000+000";
    MachineName = "VIPSCCMDP02";
    PackageName = "UCP00DB2";
    PackageVersion = "2";
    ProcessID = 2012;
    ProgramName = "ISS - Servers - Disabling BranchCache FeatureONLY";
    SiteCode = "UCP";
    ThreadID = 5616;
    };
    execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    Successfully raised SoftDistWaitingContentEvent event for program ISS - Servers - Disabling BranchCache FeatureONLY execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    Execution Request for advert UCP208B0 package UCP00DB2 program ISS - Servers - Disabling BranchCache FeatureONLY state change from WaitingDependency to WaitingContent execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:20 AM 5616 (0x15F0)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:21 AM 5432 (0x1538)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:21 AM 5616 (0x15F0)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:21 AM 4240 (0x1090)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:21 AM 2928 (0x0B70)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:21 AM 5616 (0x15F0)
    Processing [{AE2FF943-65C6-4EF8-8CD3-0ADFDB33A93E}, 0]: OnContentAvailable execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    [{AE2FF943-65C6-4EF8-8CD3-0ADFDB33A93E}]: Content Version 2 is available for advert UCP208B0, pkg: UCP00DB2, program ISS - Servers - Disabling BranchCache FeatureONLY. execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    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 10/4/2022 8:21:23 AM 2928 (0x0B70)
    Request a MTC task for execution request of package UCP00DB2, program ISS - Servers - Disabling BranchCache FeatureONLY with request id: {A42992A0-6DD9-4AD6-AECC-8411893282A1} execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    Execution Request for advert UCP208B0 package UCP00DB2 program ISS - Servers - Disabling BranchCache FeatureONLY state change from WaitingContent to Ready execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    MTC task with id {A42992A0-6DD9-4AD6-AECC-8411893282A1}, changed state from 0 to 4 execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    Processing [{AE2FF943-65C6-4EF8-8CD3-0ADFDB33A93E}, 0]: RemoveNotification execmgr 10/4/2022 8:21:23 AM 2928 (0x0B70)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    MTC signaled SWD execution request with program id: ISS - Servers - Disabling BranchCache FeatureONLY, package id: UCP00DB2 for execution. execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Sending ack to MTC for task with id: {A42992A0-6DD9-4AD6-AECC-8411893282A1} execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Executing program "Disabling-BranchCache - Feature.cmd" in Admin context execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Execution Request for advert UCP208B0 package UCP00DB2 program ISS - Servers - Disabling BranchCache FeatureONLY state change from Ready to NotifyExecution execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Checking content location C:\Windows\ccmcache\1h for use execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Successfully selected content location C:\Windows\ccmcache\1h execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Executing program as a script execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Successfully prepared command line "C:\Windows\ccmcache\1h\Disabling-BranchCache - Feature.cmd" execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Command line = "C:\Windows\ccmcache\1h\Disabling-BranchCache - Feature.cmd", Working Directory = C:\Windows\ccmcache\1h\ execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Running "C:\Windows\ccmcache\1h\Disabling-BranchCache - Feature.cmd" with 32bitLauncher execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Created Process for the passed command line execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramStartedEvent
    {
    AdvertisementId = "UCP208B0";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    CommandLine = "\"C:\Windows\ccmcache\1h\Disabling-BranchCache - Feature.cmd\"";
    DateTime = "20221004152123.465000+000";
    MachineName = "VIPSCCMDP02";
    PackageName = "UCP00DB2";
    ProcessID = 2012;
    ProgramName = "ISS - Servers - Disabling BranchCache FeatureONLY";
    SiteCode = "UCP";
    ThreadID = 5296;
    UserContext = "NT AUTHORITY\SYSTEM";
    WorkingDirectory = "C:\Windows\ccmcache\1h\";
    };
    execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Raised Program Started Event for Ad:UCP208B0, Package:UCP00DB2, Program: ISS - Servers - Disabling BranchCache FeatureONLY execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    EvaluateRequestForExecution - Updated current running request execmgr 10/4/2022 8:21:23 AM 5296 (0x14B0)
    MTC task with id {A42992A0-6DD9-4AD6-AECC-8411893282A1}, changed state from 4 to 5 execmgr 10/4/2022 8:21:23 AM 6092 (0x17CC)
    Program exit code 0 execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Looking for MIF file to get program status execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Script for Package:UCP00DB2, Program: ISS - Servers - Disabling BranchCache FeatureONLY succeeded with exit code 0 execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramCompletedSuccessfullyEvent
    {
    AdvertisementId = "UCP208B0";
    ClientID = "GUID:E90067B0-94BB-4AC9-982F-5ACE61FB41DC";
    DateTime = "20221004152123.845000+000";
    MachineName = "VIPSCCMDP02";
    PackageName = "UCP00DB2";
    ProcessID = 2012;
    ProgramName = "ISS - Servers - Disabling BranchCache FeatureONLY";
    SiteCode = "UCP";
    ThreadID = 4240;
    UserContext = "NT AUTHORITY\SYSTEM";
    };
    execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Raised Program Success Event for Ad:UCP208B0, Package:UCP00DB2, Program: ISS - Servers - Disabling BranchCache FeatureONLY execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Execution is complete for program ISS - Servers - Disabling BranchCache FeatureONLY. The exit code is 0, the execution status is Success execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 10l, value Result:TRUE ,SDKCallerId:, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Requesting MTC to delete task with id: {A42992A0-6DD9-4AD6-AECC-8411893282A1} execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    MTC task with id: {A42992A0-6DD9-4AD6-AECC-8411893282A1} deleted successfully. execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="UCP00DB2",ProgramID="ISS - Servers - Disabling BranchCache FeatureONLY", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 10/4/2022 8:21:23 AM 4240 (0x1090)
    The user has logged off. execmgr 10/4/2022 8:39:58 AM 2928 (0x0B70)
    Service startup. execmgr 10/4/2022 8:42:45 AM 5732 (0x1664)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:42:45 AM 5732 (0x1664)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:42:45 AM 5732 (0x1664)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:42:45 AM 5732 (0x1664)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:42:45 AM 5732 (0x1664)
    This machine is not a workstation, returning false for MDMIsExternallyManaged. execmgr 10/4/2022 8:42:45 AM 5732 (0x1664)
    Not RS3+, this device is SCCM managed. execmgr 10/4/2022 8:42:45 AM 5732 (0x1664)
    A user has logged on. execmgr 10/4/2022 8:43:25 AM 5324 (0x14CC)
    The logged on user is AD..... execmgr 10/4/2022 8:43:26 AM 5324 (0x14CC)

    Thanks,
    Dom

    0 comments No comments

  5. Duchemin, Dominique 2,006 Reputation points
    2022-10-04T17:50:18.347+00:00

    Thanks Sherry,

    Yes it is the testing I am on now ...
    The DISM seems really annoying as it is executing as no error is shown .... in execmgr.log... should I check another log?
    As the DISM is always in another file PS1 or CMD do I have to check later on or do I have to run it straight as DISM only from the command line in the package?
    In the last test I saw some command prompt opening with the DISM executing but no error ... not sure why the result is not the same as when I run it locally...

    Thanks,
    Dom

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.