Skip to content

Remove-S1ModuleConfiguration

SYNOPSIS

Remove persisted configuration for the PS-SentinelOne module.

SYNTAX

Remove-S1ModuleConfiguration [-All] -Value <String[]> [<CommonParameters>]

DESCRIPTION

This function removes persisted configuration for the PS-SentinelOne module. It can delete the entire configuration file or remove specific fields such as URI, API Token, or Temporary Token.

EXAMPLES

EXAMPLE 1

Remove-S1ModuleConfiguration -All

Deletes the entire configuration file for the PS-SentinelOne module.

EXAMPLE 2

Remove-S1ModuleConfiguration -Value "URI"

Removes the URI field from the persisted configuration.

EXAMPLE 3

Remove-S1ModuleConfiguration -Value @("ApiToken", "TemporaryToken")

Removes the API Token and Temporary Token fields from the persisted configuration.

PARAMETERS

-All

Deletes the entire configuration file from disk.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Value

Removes specific fields from the persisted configuration. Valid values are "URI", "ApiToken", or "TemporaryToken".

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
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.

INPUTS

OUTPUTS

NOTES