Enable-CMDriver

Enable-CMDriver

Enables a software driver or a device driver.

Syntax

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

Detailed Description

The Enable-CMDriver cmdlet enables a software driver or device driver in Microsoft System Center 2012 Configuration Manager.

Parameters

-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

-InputObject<IResultObject>

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

Aliases

none

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?

true

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

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

This set of commands enables a device driver by using a variable.

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

Disable-CMDriver

Get-CMDriver

Remove-CMDriver

Get-CMDriverPackage