Jump to content


Sign in to follow this  
Scott

Trigger SCCM Actions on local machine

Recommended Posts

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

Share this post


Link to post
Share on other sites


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

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...