Deployment Scheduling - Expiring

rhITSec 1 Reputation point
2021-01-05T16:42:44.51+00:00

I am trying to accomplish something that I don't know how to do. I have an application that needs to run once a month on endpoints. I want it to run on the 4th Wednesday of every month. However, I do NOT want it to run after the Second Tuesday of every month. I want this process to not run once MS dumps its new updates each month.

So, how do I configure the Deployment to execute the 4th Wednesday of every month but STOP working the second Tuesday of every month without having to go in and set an expiration date manually each month?

Edit: in theory, most endpoints should execute the program in that time frame. However, my concern is what if a user is on vacation from the 4th Wednesday through the 2nd Tuesday, powers on the computer, boom executes the application?

THX!

rhITsec

Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
492 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Jason Sandys 31,306 Reputation points Microsoft Employee
    2021-01-05T17:19:19.543+00:00

    There's no way to model a complex, custom constraint like this in the current scheduler but you can easily move the complex constraint to a script that conditionally executes the activity when ConfigMgr initiates the program.

    Here's a simple example: https://home.memftw.com/packageprogram-deployment-execution-time/

    2 people found this answer helpful.

  2. Youssef Saad 3,416 Reputation points
    2021-01-05T16:49:30.373+00:00

    Hi @rhITSec ,

    To avoid multiple deployment every month, I would suggest to create a Configuration Item with the monthly task, then deploy it using a baseline on a custom schedule, see the following screenshot:

    53594-baseline-cm.png

    More details:

    Regards,


    Youssef Saad | New blog: https://youssef-saad.blogspot.com
    Please remember to ** “Accept answer” ** for useful answers, thank you!

    0 comments No comments

  3. rhITSec 1 Reputation point
    2021-01-05T16:59:30.723+00:00

    @Youssef Saad thank you for your reply!

    I have never used a Configuration Baseline so please forgive my ignorance on this. If I want to run a program once a month, how do I do that with a Configuration Baseline/Item? It looks like I can only use it to detect the presence of a registry setting, run a script, etc?


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.