Enable-CMDriver
Enable-CMDriver
Enables a software driver or a device driver.
構文
Parameter Set: SearchByIdMandatory
Enable-CMDriver -Id <String[]> [-SecuredScopeNames <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Enable-CMDriver -Name <String[]> [-SecuredScopeNames <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Enable-CMDriver -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Enable-CMDriver cmdlet enables a software driver or device driver in Microsoft System Center 2012 Configuration Manager.
パラメーター
-Id<String[]>
Specifies an array of identifiers for a driver.
エイリアス |
CIId |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<IResultObject>
Specifies a driver object. To obtain a driver object, use the Get-CMDriver cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String[]>
Specifies an array of names for a driver.
エイリアス |
LocalizedDisplayName |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
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.
エイリアス |
なし |
必須? |
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: Enable a driver that is specified by its identifier
This command enables a device driver that is specified by its identifier.
PS C:\> Enable-CMDriver -Id "16777705"
Example 2: Enable a device driver that is specified by its name
This command enables a device driver that is specified by its name.
PS C:\> Enable-CMDriver -Name "cdrom.inf"
Example 3: Enable a driver that is retrieved by its ID
The first command uses the Get-CMDriver cmdlet to get the device driver object with the ID of 16777705 and stores the object in the $Driver variable.
The second command enables the device driver that is stored in $Driver.
PS C:\> $Driver =Get-CMDriver -Id "16777705"
PS C:\> Enable-CMDriver -InputObject $Driver