For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove-PSURole

Removes a role from PowerShell Universal.

SYNOPSIS

Removes a role from PowerShell Universal.

SYNTAX

All (Default)

Remove-PSURole [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

Role

Remove-PSURole [-Role] <Role> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

Id

Remove-PSURole [-Id] <Int64> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Removes a role from PowerShell Universal.

EXAMPLES

Example 1

Removes a role with the ID of 1.

PARAMETERS

-AppToken

The AppToken that is used for calling the PowerShell Universal Management API. You can also call Connect-PSUServer before calling this cmdlet to set the AppToken for the entire session.

-ComputerName

Specifies the computer name or URL that should be called when accessing the PowerShell Universal Management API. You can also use Connect-PSUServer before calling this cmdlet to set the computer name for the entire session.

-Id

The ID of the role to remove.

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-Role

The role to remove.

-UseDefaultCredentials

Specifies that the cmdlet uses the credentials of the current user.

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

PowerShellUniversal.Role

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?