Set-DPMTape
Contrassegna un nastro come Archive, Cleaner, Free o Not Free.
Sintassi
Set-DPMTape
[-Tape] <Media[]>
[-Archive]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-DPMTape
[-Tape] <Media[]>
[-Cleaner]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-DPMTape
[-Tape] <Media[]>
[-Free]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-DPMTape
[-Tape] <Media[]>
[-NotFree]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Descrizione
Il cmdlet Set-DPMTape contrassegna un nastro come Archive, Cleaner, Free o Not Free.
Esempio
Esempio 1: Contrassegnare un nastro come libero
PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "Contoso-DPMServer"
PS C:\> $DpmTape = Get-Tape -DPMLibrary $DpmLibrary
PS C:\> Set-DPMTape -Tape $DpmTape[1] -Free
Il primo comando usa il cmdlet Get-DPMLibrary per recuperare la libreria per il server e quindi la archivia nella variabile $DpmLibrary.
Il secondo comando usa il cmdlet Get-DPMTape per recuperare l'oggetto nastro e quindi lo archivia nella variabile $DpmTape.
Il terzo comando imposta il secondo nastro come Gratuito.
Parametri
-Archive
Indica che il supporto è un nastro di archiviazione.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Cleaner
Indica che il supporto è un nastro di pulizia.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Richiede la conferma dell'utente prima di eseguire il cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Free
Indica che il supporto è gratuito per l'uso.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NotFree
Indica che il supporto non è gratuito per l'uso.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
Restituisce un oggetto che rappresenta l'elemento in uso. Per impostazione predefinita, il cmdlet non genera alcun output.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tape
Specifica una matrice di nastri su cui opera questo cmdlet. Per ottenere un oggetto Tape , utilizzare il cmdlet Get-DPMTape.
Type: | Media[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Mostra l'esito in caso di esecuzione del cmdlet. Il cmdlet non viene eseguito.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Output
Tape