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!

SOLVED Uninstall SCEP using sccm shows exit code 259

  • Thread starter Thread starter Nav4339
  • Start date Start date
  • Replies Replies 4
  • Views Views 8K
Status
Not open for further replies.

Nav4339

Well-Known Member
Messages
82
Reaction score
3
Points
8
Hi, I have followed the steps to remove SCEP from my client machines. SCEP does uninstall, but I get failure reports. I used these steps:

https://prajwaldesai.com/how-to-uninstall-scep-client-using-sccm-2012-r2/

My log file is below:

Policy deleted for advertisement A0120066 package A01000B3 program Uninstall Forefront execmgr 4/25/2018 9:08:41 AM 3608 (0x0E18)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 45l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 9:08:41 AM 3608 (0x0E18)
Policy arrived for parent package A01000B3 program Uninstall Forefront execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
Requesting content from CAS for package A01000B3 version 4 execmgr 4/25/2018 9:08:41 AM 808 (0x0328)
Successfully created a content request handle {FD8FD6DC-827D-4450-A71D-D8025B84B6ED} for the package A01000B3 version 4 execmgr 4/25/2018 9:08:41 AM 808 (0x0328)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 6l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
Program Uninstall Forefront change to state STATE_ADVANCED_DOWNLOAD content available execmgr 4/25/2018 9:08:41 AM 808 (0x0328)
Execution Request for advert A0120067 package A01000B3 program Uninstall Forefront state change from NotExist to AdvancedDownload execmgr 4/25/2018 9:08:41 AM 808 (0x0328)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramOfferReceivedEvent
{
AdvertisementId = "A0120067";
ClientID = "GUID:e57ef920-321b-4d11-8b37-890979e0cf2d";
DateTime = "20180425070841.380000+000";
MachineName = "TEST";
ProcessID = 5676;
SiteCode = "A01";
ThreadID = 4892;
};
execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 9:08:41 AM 808 (0x0328)
Mandatory execution requested for program Uninstall Forefront and advertisement A0120067 execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
Creating mandatory request for advert A0120067, program Uninstall Forefront, package A01000B3 execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
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 4/25/2018 9:08:41 AM 4892 (0x131C)
Request a MTC task for execution request of package A01000B3, program Uninstall Forefront with request id: {721A8266-8D2A-477F-91D2-FF99D7B10C6C} execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
Execution Request for advert A0120067 package A01000B3 program Uninstall Forefront state change from WaitingDependency to Ready execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
MTC task with id {721A8266-8D2A-477F-91D2-FF99D7B10C6C}, changed state from 0 to 4 execmgr 4/25/2018 9:08:41 AM 5780 (0x1694)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 9:08:41 AM 4892 (0x131C)
MTC signaled SWD execution request with program id: Uninstall Forefront, package id: A01000B3 for execution. execmgr 4/25/2018 9:08:41 AM 5780 (0x1694)
Sending ack to MTC for task with id: {721A8266-8D2A-477F-91D2-FF99D7B10C6C} execmgr 4/25/2018 9:08:41 AM 5780 (0x1694)
Executing program "Uninstall MEP.bat" in Admin context execmgr 4/25/2018 9:08:41 AM 5780 (0x1694)
Execution Request for advert A0120067 package A01000B3 program Uninstall Forefront state change from Ready to NotifyExecution execmgr 4/25/2018 9:08:41 AM 5780 (0x1694)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 9:08:41 AM 5780 (0x1694)
Checking content location C:\WINDOWS\ccmcache\d for use execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Successfully selected content location C:\WINDOWS\ccmcache\d execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Executing program as a script execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Successfully prepared command line "C:\WINDOWS\ccmcache\d\Uninstall MEP.bat" execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Command line = "C:\WINDOWS\ccmcache\d\Uninstall MEP.bat", Working Directory = C:\WINDOWS\ccmcache\d\ execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Running "C:\WINDOWS\ccmcache\d\Uninstall MEP.bat" with 32bitLauncher execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Created Process for the passed command line execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramStartedEvent
{
AdvertisementId = "A0120067";
ClientID = "GUID:e57ef920-321b-4d11-8b37-890979e0cf2d";
CommandLine = "\"C:\\WINDOWS\\ccmcache\\d\\Uninstall MEP.bat\"";
DateTime = "20180425070842.380000+000";
MachineName = "TEST";
PackageName = "A01000B3";
ProcessID = 5676;
ProgramName = "Uninstall Forefront";
SiteCode = "A01";
ThreadID = 5780;
UserContext = "NT AUTHORITY\\SYSTEM";
WorkingDirectory = "C:\\WINDOWS\\ccmcache\\d\\";
};
execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Raised Program Started Event for Ad:A0120067, Package:A01000B3, Program: Uninstall Forefront execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
EvaluateRequestForExecution - Updated current running request execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
MTC task with id {721A8266-8D2A-477F-91D2-FF99D7B10C6C}, changed state from 4 to 5 execmgr 4/25/2018 9:08:42 AM 5780 (0x1694)
Program exit code 259 execmgr 4/25/2018 11:08:42 AM 6596 (0x19C4)
Looking for MIF file to get program status execmgr 4/25/2018 11:08:42 AM 6596 (0x19C4)
Program ran past its maximum runtime. It will be orphaned execmgr 4/25/2018 11:08:42 AM 6596 (0x19C4)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramExceededTime
{
AdvertisementId = "A0120067";
ClientID = "GUID:e57ef920-321b-4d11-8b37-890979e0cf2d";
DateTime = "20180425090842.504000+000";
MachineName = "TEST";
MaximumTime = "120";
PackageName = "A01000B3";
ProcessID = 5676;
ProgramName = "Uninstall Forefront";
SiteCode = "A01";
ThreadID = 6596;
};
execmgr 4/25/2018 11:08:42 AM 6596 (0x19C4)
Raised Program Exceeded Time Event for Ad:A0120067, Package:A01000B3, Program: Uninstall Forefront execmgr 4/25/2018 11:08:42 AM 6596 (0x19C4)
Execution is complete for program Uninstall Forefront. The exit code is 259, the execution status is Unknown Status execmgr 4/25/2018 11:08:42 AM 4212 (0x1074)
Requesting MTC to delete task with id: {721A8266-8D2A-477F-91D2-FF99D7B10C6C} execmgr 4/25/2018 11:08:42 AM 4212 (0x1074)
MTC task with id: {721A8266-8D2A-477F-91D2-FF99D7B10C6C} deleted successfully. execmgr 4/25/2018 11:08:42 AM 4212 (0x1074)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 10l, value Result:FALSE, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 11:08:42 AM 4212 (0x1074)
Requesting MTC to delete task with id: {721A8266-8D2A-477F-91D2-FF99D7B10C6C} execmgr 4/25/2018 11:08:42 AM 4212 (0x1074)
This execution request does not have a corresponding task in MTC. execmgr 4/25/2018 11:08:42 AM 4212 (0x1074)
Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="A01000B3",ProgramID="Uninstall Forefront", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 4/25/2018 11:08:42 AM 4212 (0x1074)
 
Last edited:
Solution
Exit code 259 error code - It means "No more data is available". What's happening here is when you are running the scep uninstall command, the it is spawning another process which actually does the uninstall, resulting in the 259 error.

Program ran past its maximum runtime. It will be orphaned execmgr - This means that ConfigMgr kicked off the installation but it did not finished within the configured period of time.

Workaround - This is not a error code generated by ConfigMgr, it is generated by the product itself. What you can do is you could add 259 as a successful code. Another alternative to adding the 259 result code to the deployment type is to script the install. In the script, trigger the install, wait (sleep)...
Exit code 259 error code - It means "No more data is available". What's happening here is when you are running the scep uninstall command, the it is spawning another process which actually does the uninstall, resulting in the 259 error.

Program ran past its maximum runtime. It will be orphaned execmgr - This means that ConfigMgr kicked off the installation but it did not finished within the configured period of time.

Workaround - This is not a error code generated by ConfigMgr, it is generated by the product itself. What you can do is you could add 259 as a successful code. Another alternative to adding the 259 result code to the deployment type is to script the install. In the script, trigger the install, wait (sleep) long enough that the spawned process actually completes, and then return the exit code back to SCCM.
 
Solution
Exit code 259 error code - It means "No more data is available". What's happening here is when you are running the scep uninstall command, the it is spawning another process which actually does the uninstall, resulting in the 259 error.

Program ran past its maximum runtime. It will be orphaned execmgr - This means that ConfigMgr kicked off the installation but it did not finished within the configured period of time.

Workaround - This is not a error code generated by ConfigMgr, it is generated by the product itself. What you can do is you could add 259 as a successful code. Another alternative to adding the 259 result code to the deployment type is to script the install. In the script, trigger the install, wait (sleep) long enough that the spawned process actually completes, and then return the exit code back to SCCM.
Thanks Prajwal this post, but I have created the package for Postman application that i am getting this error. in package model we can not add this 259 Result. we can do it only applicatino model only.
 
Status
Not open for further replies.
Back
Top