Disable-WdsDriverPackage
Disable-WdsDriverPackage
Disables a driver package in the Windows Deployment Services driver store.
Sintassi
Parameter Set: DriverPackageId
Disable-WdsDriverPackage -Id <Guid> [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: DriverPackageName
Disable-WdsDriverPackage -Name <String> [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Descrizione dettagliata
The Disable-WdsDriverPackage cmdlet disables a driver package in the Windows Deployment Services driver store. Specify a driver package by its unique name or ID.
While a driver package is disabled, clients that request the package cannot install it.
Use the Enable-WdsDriverPackage cmdlet to enable a driver package. Use the Remove-WdsDriverPackage cmdlet to delete a driver package from the driver store.
Parametri
-AsJob
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-CimSession<CimSession[]>
Esegue il cmdlet in una sessione remota o in un computer remoto. Immettere un nome di computer o un oggetto di sessione, ad esempio l'output del cmdlet New-CimSession o Get-CimSession. Il valore predefinito è la sessione corrente nel computer locale.
Alias |
Session |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-Id<Guid>
Specifies an ID. This is the ID of the driver package to disable.
Alias |
nessuno |
Obbligatorio? |
true |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
True (ByPropertyName) |
Accetta caratteri jolly? |
false |
-Name<String>
Specifies a name. This is the unique name of the driver package. If this name is not unique, specify the driver package ID, instead, by using the Id parameter.
Alias |
nessuno |
Obbligatorio? |
true |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
True (ByPropertyName) |
Accetta caratteri jolly? |
false |
-ThrottleLimit<Int32>
Specifica il numero massimo di operazioni simultanee che è possibile stabilire per eseguire il cmdlet. Se il parametro viene omesso o si specifica il valore 0
, Windows PowerShell® calcola un valore limite ottimale per il cmdlet basato sul numero di cmdlet CIM in esecuzione nel computer. Questo valore limite si applica solo al cmdlet corrente, non alla sessione o al computer.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
<CommonParameters>
Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Input
Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.
Output
Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.
- Microsoft.Management.Infrastructure.CimInstance#MSFT_WdsDriverPackage
Esempi
Example 1: Disable a driver package by using a package ID
This command disables the driver package that has the specified ID.
PS C:\> Disable-WdsDriverPackage -Id 32d78628-07fb-4e18-adc4-f0ecf8b41bbe
Example 2: Disable a driver package by name
This command disables the driver package named Fabrikam Device Driver (x64). This name must be unique.
PS C:\> Disable-WdsDriverPackage -Name "Fabrikam Device Driver (x64)"