Delen via


Remove-SCApplicationProfile

Hiermee verwijdert u een toepassingsprofiel.

Syntax

Remove-SCApplicationProfile
      [-ApplicationProfile] <ApplicationProfile>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

De cmdlet Remove-SCApplicationProfile verwijdert een toepassingsprofiel uit Virtual Machine Manager (VMM).

Voorbeelden

Voorbeeld 1: Een specifiek toepassingsprofiel verwijderen

PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> Remove-SCApplicationProfile -ApplicationProfile $AppProfile -Confirm

Met de eerste opdracht wordt het toepassingsprofielobject met de naam SvcWebAppProfile01 opgehaald en wordt het object opgeslagen in de $AppProfile variabele.

Met de tweede opdracht wordt het toepassingsprofiel verwijderd dat is opgeslagen in $AppProfile. Er wordt een bevestigingsprompt weergegeven voordat het profiel wordt verwijderd.

Parameters

-ApplicationProfile

Hiermee geeft u een toepassingsprofielobject op.

Type:ApplicationProfile
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

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

-JobVariable

Hiermee geeft u op dat de voortgang van de taak wordt bijgehouden en opgeslagen in de variabele met de naam van deze parameter.

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

-PROTipID

Hiermee geeft u de id op van de tip prestatie- en resourceoptimalisatie (PRO-tip) die deze actie heeft geactiveerd. Met deze parameter kunt u PRO-tips controleren.

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

-RunAsynchronously

Geeft aan dat de taak asynchroon wordt uitgevoerd, zodat het besturingselement onmiddellijk terugkeert naar de opdrachtshell.

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

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

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