Tech Community Live: Endpoint Manager edition
Jul 21 2022, 08:00 AM - 12:00 PM (PDT)
SOLVED

MECM Task Sequence App Deployment type not restarting computer

%3CLINGO-SUB%20id%3D%22lingo-sub-3290684%22%20slang%3D%22en-US%22%3EMECM%20Task%20Sequence%20App%20Deployment%20type%20not%20restarting%20computer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3290684%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20non-OSD%20task%20sequence%20that%20is%20being%20used%20to%20escrow%20a%20recovery%20password%20and%20uninstall%20encryption%20software%20on%20a%20number%20of%20endpoints%20in%20our%20environment.%20I%20have%20created%20an%20application%20with%20the%20TS%20deployment%20type%20and%20chosen%20the%20desired%20task%20sequence%20to%20be%20deployed%20as%20an%20application.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20chose%20to%20deploy%20as%20an%20application%20to%20make%20use%20of%20the%20restart%20pop%20up%20notifications%20configured%20in%20client%20settings%20under%20computer%20agent%20and%20computer%20restart%20to%20have%20the%20user%20prompted%20with%20a%20restart%20notification%20instead%20of%20rebooting%20the%20computer%20without%20the%20user's%20permission.%20So%20far%2C%20I%20am%20unable%20to%20get%20the%20computer%20to%20prompt%20with%20the%20restart%20notification.%20I%20know%20the%20client%20settings%20are%20configured%20correctly%20because%20other%20app%20deployments%20successfully%20show%20the%20pop%20up.%20The%20task%20sequence%20completes%20successfully%20and%20everything%20works%20as%20expected%20except%20for%20the%20restart.%20RebootCoordinator%20does%20not%20show%20any%20attempts%20to%20reboot%20the%20computer%20and%20the%20maintenance%20window%20is%20configured%20correctly.%20I%20also%20have%20the%20%22Configmgr%20will%20enforce%20a%20mandatory%20reboot%22%20enabled%20on%20the%20App%20Deployment%20type%20User%20Experience%20settings.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20experience%20doing%20something%20similar%20and%20had%20success%20with%20the%20restart%20notifications%20on%20Task%20Sequence%20deployed%20as%20an%20application%3F%20The%20CM%20version%20is%202111%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3290684%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECM%20current%20branch%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3322505%22%20slang%3D%22en-US%22%3ERe%3A%20MECM%20Task%20Sequence%20App%20Deployment%20type%20not%20restarting%20computer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3322505%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3ERead%20this%20%3A%20%3CA%20href%3D%22https%3A%2F%2Fsccmf12twice.com%2F2019%2F05%2Fsccm-reboot-decoded-how-to-make-a-pc-cancel-start-extend-or-change-mandatory-reboot-to-non-mandatory-on-the-fly%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsccmf12twice.com%2F2019%2F05%2Fsccm-reboot-decoded-how-to-make-a-pc-cancel-start-extend-or-change-mandatory-reboot-to-non-mandatory-on-the-fly%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ENever%20tested%20TS%20deployment%20type%20but%20you%20can%20test%20a%20workaround%20%3A%3CBR%20%2F%3E-%20Add%20a%20run%20powershell%20script%20step%20at%20the%20end%20of%20the%20TS%3CBR%20%2F%3E-%20Paste%20the%20script%20%C2%AB%26nbsp%3BWhat%20if%20you%20want%20to%20kick%20off%20the%20built%20in%20SCCM%20reboot%20WITH%20the%20client%20settings%20countdown%20timer%3F%26nbsp%3B%C2%BB%3CBR%20%2F%3E-%20Add%20a%20Set%20Task%20Sequence%20Variable%20%E2%80%93step%20to%20the%20task%20sequence.%3CBR%20%2F%3E-%20Fill%20in%20as%20Task%20Sequence%20Variable%20SMSTSPostAction%20and%20as%20Value%20c%3A%5Cwindows%5Cccm%5Cccmrestart.exe%3CBR%20%2F%3E%3CBR%20%2F%3ERenald%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3332545%22%20slang%3D%22en-US%22%3ERe%3A%20MECM%20Task%20Sequence%20App%20Deployment%20type%20not%20restarting%20computer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3332545%22%20slang%3D%22en-US%22%3EGreat%20Idea!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20never%20thought%20about%20kicking%20off%20the%20ccmrestart.exe%20command%20manually.%20I%20actually%20ended%20up%20doing%20the%20whole%20deployment%20as%20a%20PowerShell%20script.%20The%20point%20of%20the%20TS%20for%20me%20was%20to%20have%20the%20log%20to%20see%20what%20went%20wrong%20where%20during%20testing.%20Once%20I%20decided%20to%20build%20my%20own%20custom%20logging%20into%20the%20script%20there%20was%20no%20need%20for%20the%20Task%20Sequence%20and%20all%20was%20well.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20so%20much%20for%20your%20reply!%20I%20hope%20anyone%20else%20who%20comes%20across%20this%20finds%20it%20useful.%3C%2FLINGO-BODY%3E
New Contributor

Hello All,

 

I have a non-OSD task sequence that is being used to escrow a recovery password and uninstall encryption software on a number of endpoints in our environment. I have created an application with the TS deployment type and chosen the desired task sequence to be deployed as an application.

 

I chose to deploy as an application to make use of the restart pop up notifications configured in client settings under computer agent and computer restart to have the user prompted with a restart notification instead of rebooting the computer without the user's permission. So far, I am unable to get the computer to prompt with the restart notification. I know the client settings are configured correctly because other app deployments successfully show the pop up. The task sequence completes successfully and everything works as expected except for the restart. RebootCoordinator does not show any attempts to reboot the computer and the maintenance window is configured correctly. I also have the "Configmgr will enforce a mandatory reboot" enabled on the App Deployment type User Experience settings.

 

Does anyone have experience doing something similar and had success with the restart notifications on Task Sequence deployed as an application? The CM version is 2111

 

Thanks for any help!

2 Replies
best response confirmed by mdigrego15 (New Contributor)
Solution
Hi,

Read this : https://sccmf12twice.com/2019/05/sccm-reboot-decoded-how-to-make-a-pc-cancel-start-extend-or-change-...

Never tested TS deployment type but you can test a workaround :
- Add a run powershell script step at the end of the TS
- Paste the script « What if you want to kick off the built in SCCM reboot WITH the client settings countdown timer? »
- Add a Set Task Sequence Variable –step to the task sequence.
- Fill in as Task Sequence Variable SMSTSPostAction and as Value c:\windows\ccm\ccmrestart.exe

Renald
Great Idea!

I never thought about kicking off the ccmrestart.exe command manually. I actually ended up doing the whole deployment as a PowerShell script. The point of the TS for me was to have the log to see what went wrong where during testing. Once I decided to build my own custom logging into the script there was no need for the Task Sequence and all was well.

Thanks so much for your reply! I hope anyone else who comes across this finds it useful.