Skip to content

Get-S1Token

SYNOPSIS

Retrieve a temporary API token for SentinelOne authentication.

SYNTAX

Get-S1Token [[-Credentials] <PSCredential>] [<CommonParameters>]

DESCRIPTION

This function retrieves a temporary API token for SentinelOne authentication using the provided credentials. If no credentials are provided, it prompts the user for their SentinelOne username and password.

EXAMPLES

EXAMPLE 1

Get-S1Token -Credentials $MyCredentials

Retrieves a temporary API token using the specified credentials.

EXAMPLE 2

Get-S1Token

Prompts the user for their SentinelOne username and password, then retrieves a temporary API token.

PARAMETERS

-Credentials

The credentials to use for authentication. If not provided, the user will be prompted for their username and password.

Type: PSCredential
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
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