Deploying Software Update Scan Cycle via SCCM using a Batch File


Deploying Software Update Scan Cycle via SCCM using a Batch File

If you need to trigger a Software Update Scan Cycle through a batch file in SCCM, follow these steps.

Step 1: Create a Batch File

Create a new .bat file and add the following lines:

@echo off
echo Initiating Software Update Scan Cycle...
wmic /namespace:\\root\ccm path sms_client CALL TriggerSchedule "{00000000-0000-0000-0000-000000000113}"
echo Software Update Scan Cycle initiated.
timeout /t 10 > nul

Save this file with a .bat extension.


Copy the batch file to a shared network location that SCCM clients can access.

Now we'll create the pacakge

SCCM console > Software library > Pacakages > Create Package

 

 

Choose a name


 


Select a souce path

Select standard program


Browse the command line and select the bat file

 

A screenshot of a computer

AI-generated content may be incorrect.


Choose other options

Hidden or visible to users

User login or no
 

Now distribute the content

 

After it is successfully distributed, you can deploy

 

 

You can schedule the deployment

 

 

 

Popular Posts

Deploying a Script through Intune to a Linux PC

Windows 11 24H2 Upgrade using Intune Feature Updates Policy

Removing Obsolete Computer Records from Active Directory Using PowerShell (Only Windows Client Versions)