< Back

Get-JCCommandTarget

Thu Jan 16, 2020 8:51 am

NAME Get-JCCommandTarget



SYNOPSIS

Returns the JumpCloud systems or system groups associated with a JumpCloud command.





SYNTAX

Get-JCCommandTarget [-CommandID] <System.String> [-Groups] [<CommonParameters>]





DESCRIPTION

Using the CommandID parameter the Get-JCCommandTarget command will return all the systems associated with a

JumpCloud command. If the '-Groups' parameter is used the Get-JCCommandTarget command will return all the system

groups associated with a JumpCloud command.





PARAMETERS

-CommandID <System.String>

The id value of the JumpCloud command. Use the command 'Get-JCCommand | Select-Object _id, name' to find the

"_id" value for all the JumpCloud commands in your tenant.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Groups <System.Management.Automation.SwitchParameter>

A switch parameter to display any System Groups associated with a command.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

System.Object







NOTES









-------------------------- Example 1 --------------------------



Get-JCCommandTarget -CommandID '5a99777710p3690onylo3e1g'



Retrieves the JumpCloud system targets that are associated the JumpCloud command with the Command ID

'5a99777710p3690onylo3e1g'

-------------------------- Example 2 --------------------------



Get-JCCommandTarget -CommandID '5a99777710p3690onylo3e1g' -Groups



Retrieves the JumpCloud system group targets that are associated the JumpCloud command with the Command ID

'5a99777710p3690onylo3e1g'



RELATED LINKS

Online Version: https://github.com/TheJumpCloud/support ... mandTarget