Remove-SCOMRunAsProfile

Removes a Run As profile from a management group.

Syntax

Remove-SCOMRunAsProfile [-RunAsProfile] <ManagementPackSecureReference[]> [-ComputerName <String[]>]
 [-Credential <PSCredential>] [-SCSession <Connection[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

Description

The Remove-SCOMRunAsProfile cmdlet removes a Run As profile from a management group. A Run As profile is a group of associated Run As accounts that manage credentials and their distribution to different computers.

Examples

Example 1: Remove a Run As profile

PS C:\>Get-SCOMRunAsProfile "Profile01" | Remove-SCOMRunAsProfile

This command removes the Profile01 profile. The command uses the Get-SCOMRunAsProfile cmdlet to get the specified profile and passes it to the Remove-SCOMRunAsProfile cmdlet by using the pipeline operator.

Parameters

-ComputerName

Specifies an array that contains the name of the computer with which to establish a connection. Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, specify the computer name, localhost, or a dot (.).

The computer must run the System Center Data Access service.

If you do not specify this parameter, the default is the computer for the current management group connection.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies the user account under which the management group connection runs. Specify a PSCredential object, such as one that the Get-Credential cmdlet returns, for this parameter. For more information about credential objects, type "Get-Help Get-Credential".

This account must have access to the server that is specified in the ComputerName parameter if that parameter appears.

If you do not specify this parameter, the default is the account for the current user.

Type:PSCredential
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsProfile

Specifies an array that contains the Run As profile to remove.

Type:ManagementPackSecureReference[]
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SCSession

Specifies an array of Connection objects. To get Connection objects, specify the Get-SCOMManagementGroupConnection cmdlet.

If this parameter does not appear, the cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type "Get-Help about_OpsMgr_Connections".

Type:Connection[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False