Remove-SCSSHKey

Removes a Linux Administrator SSHkey object from VMM.

Syntax

Remove-SCSSHKey [-SSHKey] <SSHKey> [-Confirm] [-Force] [-JobVariable <String>] [-PROTipID <Guid>]
 [-RunAsynchronously] [-WhatIf] [<CommonParameters>]

Description

The Remove-SCSSHKey cmdlet removes a Linux Administrator SSHKey object from Virtual Machine Manager (VMM).

Examples

Example 1: Remove an SSHKey

PS C:\> $SSHKey = Get-SCSSHKey -Name "My.sshkey"
PS C:\> Remove-SCSSHKey -SSHKey $SSHKey -Confirm

The first command gets the SSHKey object named My.sshkey from the VMM library, and then stores that object in the $SSHKey variable.

The second command removes the SSHKey object stored in $SSHKey from VMM, prompting you for confirmation before performing the action.

Parameters

-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
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies a variable in which job progress is tracked and stored.

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

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SSHKey

Specifies a Linux Administrator SSHKey object.

Type:SSHKey
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
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