Skip to main content

Using the “invoke” Command Group

This documentation was last updated on 7/3/24 by Chris Thompson (@_Mayyhem). Please refer to the output of the --help option for each command for the most up-to-date usage information.

Description

A group of commands that execute actions on an SMS Provider

Usage

Subcommands


invoke admin-service

Description

Invoke an arbitrary CMPivot query against a collection of clients or a single client via AdminService

Requirements

Usage

Examples

Get members of the local Administrators group from a device with resourceID 16777226
Get logon events for the last 8 hours from a specified device and display the output in JSON format:
Get the contents of a specified file on disk:

invoke client-push

Description

Force the primary site server to authenticate to an arbitrary destination via NTLM using each configured account and its domain computer account

Requirements

  • Automatic site assignment and site-wide client push installation are enabled
  • Fallback to NTLM authentication is not explicitly disabled (default)
  • PKI certificates are not required for client authentication (default)

Usage

Examples

Create a new device record and data discovery record with the NetBIOS name of the local machine to coerce NTLMv2 authentication from the primary site server’s client push installation accounts and computer account:

References


invoke query

Description

Execute a given WQL query on an SMS Provider or other server

Requirements

Permitted security roles:
  • ACLs are applied at the object class and instance level

Usage

Examples

Execute the WQL query SELECT * FROM SMS_Admin on the SMS Provider (default: check if the current management point is one) in the root\SMS\site_<sitecode> WMI namespace:

invoke update

Description

Force clients to check for updates and execute any new applications that are available

Requirements

Permitted security roles:
  • Full Administrator
  • Operations Administrator

Usage

Examples

Force all members of the collection with CollectionID SMSDM003 to retrieve machine policy and execute any new applications available: