Share via


Get-CMDriver

Get-CMDriver

Gets a software driver or a device driver.

Syntax

Parameter Set: SearchByName
Get-CMDriver [-Name <String[]> ] [-SecuredScopeNames <String> ] [ <CommonParameters>]

Parameter Set: SearchByDriverPackage
Get-CMDriver -DriverPackage <IResultObject> [ <CommonParameters>]

Parameter Set: SearchByDriverPackageIdMandatory
Get-CMDriver -DriverPackageId <String> [ <CommonParameters>]

Parameter Set: SearchByDriverPackageNameMandatory
Get-CMDriver -DriverPackageName <String> [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMDriver -Id <String[]> [-SecuredScopeNames <String> ] [ <CommonParameters>]

Detailed Description

The Get-CMDriver cmdlet gets a software driver or device.

Parameters

-DriverPackage<IResultObject>

Specifies a driver object. To obtain a driver object, use the Get-CMDriverPackage cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackageId<String>

Specifies the identifier for a driver package that uses a particular driver. To obtain a driver object, use the Get-CMDriverPackage cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackageName<String>

Specifies the name for a driver package that uses a particular driver. To obtain a driver object, use the Get-CMDriverPackage cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Id<String[]>

Specifies an array of identifiers for a driver.

Aliases

CIId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names for a driver.

Aliases

LocalizedDisplayName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SecuredScopeNames<String>

Specifies the names of security scopes. A security scope name can be Default or the name of a custom-created security scope.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get a device driver

This command gets a device driver that is specified by its inclusion in a driver package.

PS C:\> Get-CMDriver -DriverPackageName "Adaptec Embedded SCSI Host"

Disable-CMDriver

Enable-CMDriver

Import-CMDriver

Remove-CMDriver

Set-CMDriver

Get-CMDriverPackage