Start-CMClientAction PowerShell Tool Help File
Start-CMClientAction PowerShell Tool Help File
The help information provided below can also be viewed by using the following syntax:
Help Info
NAME
Start-CMClientAction
SYNOPSIS
The "Start-CMClientAction" function initiates allows 49 different SCCM client actions to be initiated on
one, or more computers.
SYNTAX
DESCRIPTION
The "Start-CMClientAction" PowerShell function allows for the initiaion of 49 SCCM client actions that
can be ran on the
local computer, or remote computers. Only one client action can be ran at a time, so using an array to
include several
client actions is not allowed. The Configuration Manager applet in Control Panel on the Actions tab
lists 10 actions and
these are identified in the Notes section with a "ConfigMgr Control Panel Applet" in parenthesis.
SCCM Administrators
typically find themselves running the following 3 actions during their monthly software update
deployments (patching):
Machine Policy Retrieval & Evaluation Cycle, Software Updates Scan Cycle, and Software Updates
Deployment Evaluation
Cycle. Because these 3 actions are so common, I decided to offer a way to bundle them with a 5
minute wait time (300
seconds) between each action. The parameter to use to run these 3 bundled actions is the '-
SCCMActionsBundle' parameter.
used together.
PARAMETERS
-ComputerName <Object>
Enter the name of one or more computers that you wish to initiate an SCCM client action on.
Required? false
Position? named
-SCCMClientAction <Int32>
Enter a numerical value from 1-49 that represents each SCCM client action listed in the Notes
section under ther "SCCM
Required? true
Position? named
Default value 0
-SCCMActionsBundle [<SwitchParameter>]
A switch parameter that does not accept any values, but rather tells the function to run the
following 3 actions
listed in the Notes section under ther "SCCM Client Action Trigger Codes" heading:
* Option 7 - Request Machine Assignments - (ConfigMgr Control Panel Applet - Machine Policy
Retrieval & Evaluation
Cycle)
* Option 38 - Scan by Update Source - (ConfigMgr Control Panel Applet - Software Updates Scan
Cycle)
* Option 33 - Software Updates Assignments Evaluation Cycle - (ConfigMgr Control Panel Applet -
Software Updates
Required? false
Position? named
<CommonParameters>
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
--------------------------------
Cycle)
Cycle)
Collection Cycle)
Scan Cycle)
Start-CMClientAction -SCCMClientAction 1
C:\PS>Initiate an SCCM Client Action on Multiple Remote Computers Using a List of Computers in a
Text File
C:\PS>Initiate an SCCM Client Action Bundle on the Local Computer that Runs Options 7, 38, and 33
(Machine Policy
Retrievale & Evaluation Cycle, Software Updates Scan Cycle, and Software Updates Deployment
Evaluation Cycle)
Start-CMClientAction -SCCMActionsBundle
C:\PS>Initiate an SCCM Client Action Bundle on a Remote Computer that Runs Options 7, 38, and 33
(Machine Policy
Retrievale & Evaluation Cycle, Software Updates Scan Cycle, and Software Updates Deployment
Evaluation Cycle)
C:\PS>Initiate an SCCM Client Action Bundle on Multiple Remote Computers that Runs Options 7, 38,
and 33 (Machine Policy
Retrievale & Evaluation Cycle, Software Updates Scan Cycle, and Software Updates Deployment
Evaluation Cycle)
C:\PS>Initiate an SCCM Client Action Bundle on Multiple Remote Computers Using a List of Computers
in a Text File that
Runs Options 7, 38, and 33 (Machine Policy Retrievale & Evaluation Cycle, Software Updates Scan
Cycle, and Software