Set-S1Policy
SYNOPSIS
Modify policy settings in SentinelOne.
SYNTAX
RevertGroup
SetGroup
RevertSite
SetSite
RevertAccount
SetAccount
DESCRIPTION
This function modifies policy settings in SentinelOne by specifying a Group ID, Site ID, or Account ID. It allows setting a new policy or reverting the policy settings to inherit from the parent.
EXAMPLES
EXAMPLE 1
PS C:\> $Policy.mitigationMode = "detect" PS C:\> Set-S1Policy -GroupID "group123" -NewPolicy $Policy Modifies the policy settings for the specified group to set the mitigation mode to "detect".
EXAMPLE 2
Reverts the policy settings for the specified group to inherit from the parent.
EXAMPLE 3
Modifies the policy settings for the specified site.
EXAMPLE 4
Reverts the policy settings for the specified account to inherit from the parent.
PARAMETERS
-GroupID
Modify policy settings by Group ID.
Type: String
Parameter Sets: RevertGroup, SetGroup
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SiteID
Modify policy settings by Site ID.
Type: String
Parameter Sets: RevertSite, SetSite
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AccountID
Modify policy settings by Account ID.
Type: String
Parameter Sets: RevertAccount, SetAccount
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NewPolicy
The new policy object to set.
Type: Object
Parameter Sets: SetGroup, SetSite, SetAccount
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RevertPolicy
Reverts policy settings to inherit from the parent.
Type: SwitchParameter
Parameter Sets: RevertGroup, RevertSite, RevertAccount
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
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.