Skip to content

Trigger SCCM Actions on local machine

Featured Replies

After our machines have been built using SCCM OSD, I want to ensure that all of the cycles have been triggered, to ensure that all the outstanding updates and any software packages advertised to the client get installed as soon as possible.

 

I've found this - http://www.intrntpirate.com/?p=179

However, it doesnt work for me and wondered if others had a script that worked already!?

 

Cheers

Scott

How about This ?

 

actionNameToRun = "Machine Policy Retrieval & Evaluation Cycle"
Dim controlPanelAppletManager
Set controlPanelAppletManager = CreateObject("CPApplet.CPAppletMgr")
Dim clientActions
Set clientActions = controlPanelAppletManager.GetClientActions()
Dim clientAction
For Each clientAction In clientActions
If clientAction.Name = actionNameToRun Then
	clientAction.PerformAction  
End If
Next
wscript.echo "Executed: " & actionNameToRun

 

Below are other actionnames which you use to run :

 

'Software Metering Usage Report Cycle

'Request & Evaluate Machine Policy

'Updates Source Scan Cycle

'Request & Evaluate User Policy

'Hardware Inventory Collection Cycle

'Software Inventory Collection Cycle

'Software Updates Assignments Evaluation Cycle

'Peer DP Maintenance Task

'Discovery Data Collection Cycle

'MSI Product Source Update Cycle

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.