Get-SentinelOnePolicies
SYNOPSIS
Get the policies for defined scopes
SYNTAX
indexByGlobal (Default)
Get-SentinelOnePolicies [-globalPolicy] [<CommonParameters>]
indexByAccount
Get-SentinelOnePolicies -account_id <String> [<CommonParameters>]
indexByGroup
Get-SentinelOnePolicies -group_id <String> [<CommonParameters>]
indexBySite
Get-SentinelOnePolicies -site_id <String> [<CommonParameters>]
DESCRIPTION
The Get-SentinelOnePolicies cmdlet gets the policies for defined scopes
Scopes: Global, Account, Site, Group
EXAMPLES
EXAMPLE 1
Get-SentinelOnePolicies
Returns the Global policy
EXAMPLE 2
Get-SentinelOnePolicies -siteId 225494730938493804
Returns the policy of the Site given by ID
EXAMPLE 3
225494730938493804 | Get-SentinelOnePolicies
Returns the policy of the Site given by ID
PARAMETERS
-account_id
Account ID. You can get the ID from the Get accounts command.
Example: “225494730938493804”.
Type: String
Parameter Sets: indexByAccount
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-globalPolicy
Get the Global policy
Returned by default
Type: SwitchParameter
Parameter Sets: indexByGlobal
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-group_id
Group ID.
Example: “225494730938493804”.
Type: String
Parameter Sets: indexByGroup
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-site_id
Site ID.
Example: “225494730938493804”.
Type: String
Parameter Sets: indexBySite
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
N\A
RELATED LINKS
https://celerium.github.io/SentinelOne-PowerShellWrapper/site/Policies/Get-SentinelOnePolicies.html