Import-CMDriver

Import-CMDriver

Imports device drivers into the driver catalog.

構文

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>]

詳細説明

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.

パラメーター

-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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-EnableAndAllowInstall<Boolean>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ImportDuplicateDriverOption<ImportDuplicateDriverOption>

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

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SupportedPlatformName<String[]>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-UpdateDistributionPointsforBootImagePackage<Boolean>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-UpdateDistributionPointsforDriverPackage<Boolean>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Import a device driver

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