-
Notifications
You must be signed in to change notification settings - Fork 153
Get JCPolicyResult
external help file: JumpCloud-help.xml Module Name: JumpCloud online version: https://github.com/TheJumpCloud/support/wiki/Get-JCPolicyResult schema: 2.0.0
Returns all JumpCloud results for a given policy within a JumpCloud tenant.
Get-JCPolicyResult [-PolicyName] <String> [<CommonParameters>]
Get-JCPolicyResult [-PolicyID] <String> [-ByPolicyID] [<CommonParameters>]
Get-JCPolicyResult -SystemID <String> [-BySystemID] [<CommonParameters>]
Get-JCPolicyResult [-PolicyResultID <String>] [<CommonParameters>]
The Get-JCPolicyResult function returns the latest policy result information from a JumpCloud policy. You can search by a specific policy name to return results from the policy being applied. You can also search by a specific systemId to find the latest policy result for a specific system.
PS C:\> Get-JCPolicyResult 'HelloWorld'
Returns the latest policy result for the HelloWorld policy.
PS C:\> Get-JCPolicyResult -PolicyId 123456789
Returns the latest policy result for the policy with the id of 123456789.
PS C:\> Get-JCPolicyResult -SystemID 123456789
Returns the latest policy result for a system with the id of 123456789.
The -ByPolicyID switch parameter will enforce the ByPolicyID parameter set and improve performance of gathering multiple policy results via the pipeline when the input object contains a property with PolicyID.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: ByPolicyID
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The -BySystemID switch parameter will enforce the BySystemID parameter set and search for results by SystemID.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: BySystemID
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The PolicyID of the JumpCloud policy you wish to query.
Type: System.String
Parameter Sets: ByPolicyID
Aliases: _id, id
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The PolicyName of the JumpCloud policy you wish to query.
Type: System.String
Parameter Sets: ByPolicyName
Aliases: name
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The PolicyResultID of the JumpCloud policy result you wish to query.
Type: System.String
Parameter Sets: ByPolicyResultID
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The SystemID of the JumpCloud system you wish to query the latest policy result of.
Type: System.String
Parameter Sets: BySystemID
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Wiki Home
- Installing the JumpCloud PowerShell module
- Using the JumpCloud PowerShell Module
- Using the JumpCloud PowerShell Module with AWS Lambda
- PowerShell Commands Example Library
- JumpCloud Commands Gallery
- JumpCloud PowerShell YouTube Channel
- The JumpCloud Dashboard PowerShell Module
Authentication
Import and Backup
- Get JCAssociation
- New JCImportTemplate
- Import JCUsersFromCSV
- Update JCUsersFromCSV
- Get JCBackup
- Send JCPasswordReset
- Backup JCOrganization
RADIUS Reply Attributes
- Add JCRadiusReplyAttribute
- Get JCRadiusReplyAttribute
- Update JCUsersFromCSV
- Set JCRadiusReplyAttribute
- Remove JCRadiusReplyAttribute
User Functions
Administrator Functions
System Functions
- Get JCSystem
- Get JCSystemApp
- Get JCSystemKB
- Set JCSystem
- Remove JCSystem
- Get JCSystemUser
- Set JCSystemUser
- Add JCSystemUser
- Remove JCSystemUser
Command Functions
- New JCCommand
- Get JCCommand
- Import JCCommand
- Remove JCCommand
- Set JCCommand
- Invoke JCCommand
- New JCDeploymentTemplate
- Invoke JCDeployment
- Get JCCommandResult
- Remove JCCommandResult
- Get JCCommandTarget
- Add JCCommandTarget
- Remove JCCommandTarget
Group Functions
- Get JCGroup
- New JCUserGroup
- Remove JCUserGroup
- Get JCUserGroupMember
- Add JCUserGroupMember
- Remove JCUserGroupMember
- New JCSystemGroup
- Remove JCSystemGroup
- Get JCSystemGroupMember
- Add JCSystemGroupMember
- Remove JCSystemGroupMember
- Set-JCUserGroupLDAP
Policy Functions
- Get JCPolicy
- Get JCPolicyResult
- Get JCPolicyTargetSystem
- Get JCPolicyTargetGroup
- New JCPolicy
- Set JCPolicy
Event Functions