Share via

Powershell cmdlet to disable sync setting in SUP

Dinesh Vinay 86 Reputation points
2021-05-20T16:57:09.823+00:00

Hi,

Hope everyone is doing well. Just would like to know, is there any powershell cmdlet to disable the "Enable Synchronization on schedule checkbox from Sync schedule tab in SUP component properties.

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments

7 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,441 Reputation points Microsoft External Staff
    2021-06-01T08:35:49.113+00:00

    Hi, @Dinesh Vinay
    Check below article to see if you are running SCCM PowerShell Scripts as a Service Account:
    http://get-cmd.com/?p=4088
    (Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)

    Was this answer helpful?

    0 comments No comments

  2. Dinesh Vinay 86 Reputation points
    2021-05-31T15:56:49.093+00:00

    Allen, Much thanks for your support.

    One more question, we have requirement to disable the sync settings to run before SUSDB clean-up through SQL maintenance plan and we need to enable the sync schedule back with custom internal after the SQL maintenance plan executed.

    Would you please guide me that how to execute the sync powershell cmdlets in Windows Task scheduler?

    Is there any powershell script or Task scheduler steps require to configure this, because It was failing when we tried to run the SCCM powershell cmdlets by putting it into notepad and converted into ps1 file that directly configured into task scheduler.

    Share your view on this please.

    Was this answer helpful?

    0 comments No comments

  3. AllenLiu-MSFT 49,441 Reputation points Microsoft External Staff
    2021-05-31T06:54:46.673+00:00

    Hi, @Dinesh Vinay
    Thank you for your feedback, to enable the schedule and set to every 6 hours, please try this:
    $CusSch = New-CMSchedule -RecurInterval Hours -RecurCount 6
    Set-CMSoftwareUpdatePointComponent -Schedule $CusSch


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

  4. Dinesh Vinay 86 Reputation points
    2021-05-28T16:46:46.813+00:00

    Allen, Much appreciate for your support. That Powershell cmd is working like charm.

    Just I need one more Powershell requirement.

    I want to enable the Enable synchronization schedule checkbox again with custom schedule to recur every 6 hours.

    Was this answer helpful?

    0 comments No comments

  5. AllenLiu-MSFT 49,441 Reputation points Microsoft External Staff
    2021-05-21T07:02:29.63+00:00

    Hi, @Dinesh Vinay
    Thank you for posting in Microsoft Q&A forum.
    I test in my lab, the parameter 'EnableSynchronization' has been deprecated and may be removed in a future release. The parameter 'Schedule' may be used as a replacement.

    So, the below cmdlet works:

    Set-CMSoftwareUpdatePointComponent -Schedule $null  
    

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

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