Import-CMDriver

Import-CMDriver

Imports device drivers into the driver catalog.

Syntax

Parameter Set: NewDriver
Import-CMDriver -UncFileLocation <String> [-AdministrativeCategory <IResultObject[]> ] [-BootImagePackage <IResultObject[]> ] [-DriverPackage <IResultObject[]> ] [-EnableAndAllowInstall <Boolean> ] [-ImportDuplicateDriverOption <ImportDuplicateDriverOption> {AppendCategory | KeepExistingCategory | NotImport | OverwriteCategory} ] [-SupportedPlatformName <String[]> ] [-UpdateDistributionPointsforBootImagePackage <Boolean> ] [-UpdateDistributionPointsforDriverPackage <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Import-CMDriver cmdlet imports one or more device drivers into the driver catalog.

As part of the import process for the device driver, Microsoft System Center 2012 Configuration Manager reads the provider, class, version, signature, supported hardware, and supported platform information that is associated with the device. By default, the driver is named after the first hardware device that it supports; however, you can rename the device driver later. The supported platforms list is based on the information in the INF file of the driver. Because the accuracy of this information can vary, manually verify that the device driver is supported after it is imported into the driver catalog.

When you import device drivers into the catalog, you can add the device drivers to driver packages or to boot image packages.

Parameters

-AdministrativeCategory<IResultObject[]>

Specifies an array of administrative categories. Assign the device drivers to an administrative category for filtering purposes, such as "Desktops" or "Notebooks" categories.

To obtain an administrative category object, use the Get-CMCategory cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BootImagePackage<IResultObject[]>

Specifies an array of boot image objects. Use this parameter to specify the boot images that can install the imported device drivers. To obtain a boot image object, use the Get-CMBootImage cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackage<IResultObject[]>

Specifies an array of driver package objects. Use this parameter to specify the driver packages that Configuration Manager uses to distribute the device drivers. To obtain a driver package object, use the Get-CMDriverPackage cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-EnableAndAllowInstall<Boolean>

Indicates whether Configuration Manager enables the drivers and allows computers to install the drivers.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ImportDuplicateDriverOption<ImportDuplicateDriverOption>

Specifies how Configuration Manager manages driver categories when you import a duplicate device driver. Valid values for this parameter are:

-- AppendCategory
-- KeepExistingCategory
-- NotImport
-- OverwriteCategory

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SupportedPlatformName<String[]>

Specifies an array of names of platforms on which the device driver can run.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-UncFileLocation<String>

Specifies the network path (UNC) of the device drivers.

To import all the device drivers that are contained in a specific folder, specify the network path to the device driver folder. For example: \\servername\folder. To import a specific driver from a folder, specify the network path (UNC) to the Windows device driver .INF or mass storage Txtsetup.oem file of the driver.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-UpdateDistributionPointsforBootImagePackage<Boolean>

Indicates whether Configuration Manager updates distribution points when the device drivers are added to the boot image package.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-UpdateDistributionPointsforDriverPackage<Boolean>

Indicates whether Configuration Manager updates distribution points when the device drivers are added to the driver package.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

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 (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: Import a device driver

This example imports a device driver into the driver catalog.

The first command uses the Get-CMDriverPackage cmdlet to get the driver package that has the ID ST100062, and stores the result in the $driverPackage variable.

The second command uses the Get-CMBootImage cmdlet to get the boot image that has the ID CM100004, and stores the result in the $bootPackage variable.

The third command imports the Windows device driver named smwdmCH6.inf. The command specifies that Configuration Manager overwrites the driver category when you import a duplicate device drive. The command enables the drivers and allows computers to install the drivers. The command specifies that Configuration Manager use the driver packages stored in $driverPackage to distribute the device drivers, and specifies the boot images stored in $bootPackage that can install the imported device drivers.

PS C:\> $driverPackage = Get-CMDriverPackage –Id "ST100062"
PS C:\> $bootPackage = Get-CMBootImage –Id "CM100004"
PS C:\> Import-CMDriver -UncFileLocation "\\btc-dist-08\Public\CM\AdminTeam\Driver\X64Driver\AudioDriver\smwdmCH6.inf" -ImportDuplicateDriverOption OverwriteCategory -EnableAndAllowInstall $True -DriverPackage $driverPackage -BootImagePackage $bootPackage

Get-CMDriver

Set-CMDriver

Enable-CMDriver

Disable-CMDriver

Remove-CMDriver

Get-CMCategory

Get-CMBootImage

Get-CMDriverPackage