Remove-SCCustomProperty
Eltávolít egy egyéni tulajdonságdefiníciót a VMM-adatbázisból.
Syntax
Remove-SCCustomProperty
-CustomProperty <CustomProperty>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
A Remove-SCCustomProperty parancsmag eltávolít egy egyéni tulajdonságdefiníciót a Virtual Machine Manager- (VMM-) adatbázisból.
Példák
1. példa: Egyéni tulajdonságdefiníció eltávolítása
PS C:\> $CustomProp = Get-SCCustomProperty -Name "Cost Center"
PS C:\> Remove-SCCustomProperty -CustomProperty $CustomProp
Az első parancs lekéri a Cost Center nevű egyéni tulajdonságobjektumot, és az objektumot a $CustomProp változóban tárolja.
A második parancs eltávolítja a $CustomProp tárolt egyéni tulajdonságobjektumot.
Paraméterek
-Confirm
Jóváhagyást kér a parancsmag futtatása előtt.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomProperty
Egyéni tulajdonságobjektumot ad meg.
Type: | CustomProperty |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JobVariable
Meghatározza, hogy a feladat előrehaladása nyomon legyen követve és tárolva legyen a paraméter által elnevezett változóban.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Megadja a műveletet aktiváló teljesítmény- és erőforrás-optimalizálási tipp (PRO-tipp) azonosítóját. Ez lehetővé teszi a PRO-tippek naplózását.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Azt jelzi, hogy a feladat aszinkron módon fut, így a vezérlő azonnal visszatér a parancsfelületre.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Bemutatja, mi történne a parancsmag futtatásakor. A parancsmag nem fut.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Jegyzetek
- VMM egyéni tulajdonságobjektumot igényel, amely a Get-SCCustomProperty parancsmaggal kérhető le.