Remove-HpcDriver
Removes one or more specified device drivers.
Syntax
Remove-HpcDriver [-Scheduler <string>] -Driver <HpcDriver[]> [-confirm] [-whatif] [<CommonParameters>] Remove-HpcDriver [-Scheduler <string>] [-Name] <string[]> [-confirm] [-whatif] [<CommonParameters>]
Detailed Description
Removes one or more specified device drivers. You specify the device drivers by using eithet HpcDriver objects or the names of the setup information (.inf) files for the device drivers. Do not include the paths for the .inf files.
Parameters
-Driver <HpcDriver[]>
Specifies a list of one or more HpcDriver objects for the device drivers that you want to remove. Use the Get-HpcDriver cmdlet to get the HpcDriver objects for the device drivers.
|
Required? |
true |
|
Position? |
named |
|
Default Value |
no default |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
true |
-Name <string[]>
Specifies a list of one or more files names for the setup information (.inf) files for the device drivers that you want to remove. You do not need to include paths for the .inf files. Use the Get-HpcDriver cmdlet to view the file names of the .inf files for the device drivers in the HPC cluster.
|
Required? |
true |
|
Position? |
1 |
|
Default Value |
no default |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
true |
-Scheduler <string>
Specifies the host name or IP address of the head node for the cluster that includes the device drivers. The value must be a valid computer name or IP address. If you do not specify the Scheduler parameter, this cmdlet uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. To set this environment variable, run the following cmdlet:
Set-Content Env:CCP_SCHEDULER <head_node_name>
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before executing the command.
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Input and Return Types
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.
|
Input Type |
One or more HpcDriver objects. |
|
Return Type |
None. |
Example 1
C:\PS>Remove-HpcDriver -Name MyDriver.inf
Removes the device driver that has a setup information (.inf) file named MyDriver.inf.
Example 2
C:\PS>Remove-HpcDriver -Name Driver1.inf,Driver2.inf -Scheduler Headnode
Removes the device drivers that have setup information (.inf) files named Driver1.inf and Driver2.inf on the HPC cluster with a head node named Headnode.
Example 3
C:\PS>Get-HpcDriver -Name MyDriver.inf | Remove-HpcDriver
Gets the HpcDriver object for the device driver that has a setup information file named MyDriver.inf, then removes that device driver by redirecting that HpcDriver object to the Remove-HpcDriver cmdlet.