Updates the properties of an existing driver package object.
Description
The Set-SCDriverPackage cmdlet updates the properties of an existing driver package object.
For more information about Set-SCDriverPackage, type: "Get-Help Set-SCDriverPackage -online".
Parameters
DriverPackage
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a driver package object.
Tag
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a word or phrase to associate with an object so that you can search for all objects with the specified set of tags. You can search for a subset of tags, or you can search for the full set of tags.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
The first command gets all driver package objects that have a tag value of Production and stores the objects in the $Drivers object array.
The second command uses the ForEach statement to add the value "NewTag" to each driver package object stored in $Drivers.
For information about the Windows PowerShell ForEach statement, type: "Get-Help about_Foreach".