Restarting Windows PC's daily using CSP RebootCSP

%3CLINGO-SUB%20id%3D%22lingo-sub-1229417%22%20slang%3D%22en-US%22%3ERestarting%20Windows%20PC's%20daily%20using%20CSP%20RebootCSP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1229417%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20requirement%20to%20restart%20client%20Windows%2010%20PC's%20enrolled%20in%20Intune%20(no%20on-prem%20SCM)%20on%20a%20daily%20basis.%20The%20Custom%20Config%20Policy%20CSP%20%22RebootCSP%22%20(%3CSPAN%3E.%2FVendor%2FMSFT%2FReboot%2FSchedule%2FDailyRecurrent)%20works%20well%2C%20*provided*%20that%20the%20computers%20are%20actually%20awake%20at%20the%20time%20when%20the%20reboot%20is%20scheduled.%20Lo%20and%20behold%2C%20when%20I%20inspect%20the%20scheduled%20tasks%20that%20have%20been%20created%20on%20the%20client%20PC's%20with%20for%20this%20policy%2C%20the%20task%20option%20to%20%22Wake%20computer%20to%20perform%20task%22%20is%20unchecked%2C%20so%20they%20do%20not%20reboot%20at%20the%20schedule%20time.%20The%20result%20is%20that%20when%20folks%20wake%20up%20their%20PC's%20first%20thing%20in%20the%20work%20day%2C%20they%20immediately%20get%20the%20message%20that%20a%20reboot%20as%20been%20issued.%20Not%20what%20we%20want.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20wondering%2C%20in%20general%2C%20how%20can%20I%20also%20ensure%20that%20the%20computer%20is%20set%20to%20wake%20automatically%20to%20perform%20this%20scheduled%20task%2C%20without%20having%20to%20write%20some%20separately%20deployed%20PowerShell%20script%3F%20Unlike%20conventional%20GPO%20for%20creating%20Task%20Scheduler%20objects%2C%20I'm%20not%20seeing%20how%20to%20tweak%20the%20settings%20for%20the%20associated%20task%20via%20the%20CSP.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20PS%20is%20the%20only%20way%20to%20go%2C%20and%20anyhow%20has%20done%20this%20sort%20of%20thing%20before%20(and%2For%20has%20a%20better%20way)%20help%2Fdirection%20would%20be%20greatly%20appreciated.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBob%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1229417%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2155628%22%20slang%3D%22en-US%22%3ERe%3A%20Restarting%20Windows%20PC's%20daily%20using%20CSP%20RebootCSP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2155628%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3501%22%20target%3D%22_blank%22%3E%40Bob%20Manjoney%3C%2FA%3E%26nbsp%3BDid%20you%20ever%20get%20a%20solution%20to%20this%3F%20I'm%20currently%20chasing%20down%20this%20exact%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2155841%22%20slang%3D%22en-US%22%3ERe%3A%20Restarting%20Windows%20PC's%20daily%20using%20CSP%20RebootCSP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2155841%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F974663%22%20target%3D%22_blank%22%3E%40christian_capellan%3C%2FA%3E%26nbsp%3BNo%2C%20unfortunately%20I%20still%20have%20no%20solution.%3C%2FP%3E%3CDIV%20class%3D%22ms-editor-squiggler%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ms-editor-squiggler%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ms-editor-squiggler%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Regular Contributor

I have a requirement to restart client Windows 10 PC's enrolled in Intune (no on-prem SCM) on a daily basis. The Custom Config Policy CSP "RebootCSP" (./Vendor/MSFT/Reboot/Schedule/DailyRecurrent) works well, *provided* that the computers are actually awake at the time when the reboot is scheduled. Lo and behold, when I inspect the scheduled tasks that have been created on the client PC's with for this policy, the task option to "Wake computer to perform task" is unchecked, so they do not reboot at the schedule time. The result is that when folks wake up their PC's first thing in the work day, they immediately get the message that a reboot as been issued. Not what we want.

 

I'm wondering, in general, how can I also ensure that the computer is set to wake automatically to perform this scheduled task, without having to write some separately deployed PowerShell script? Unlike conventional GPO for creating Task Scheduler objects, I'm not seeing how to tweak the settings for the associated task via the CSP.

 

If PS is the only way to go, and anyhow has done this sort of thing before (and/or has a better way) help/direction would be greatly appreciated.

 

Thanks,

Bob

2 Replies

@Bob Manjoney Did you ever get a solution to this? I'm currently chasing down this exact solution.

@christian_capellan No, unfortunately I still have no solution.