Get-SCDriverPackage
获取存储在 VMM 库共享中的驱动程序包。
语法
Get-SCDriverPackage
[-VMMServer <ServerConnection>]
[<CommonParameters>]
Get-SCDriverPackage
[-VMMServer <ServerConnection>]
[[-PnPID] <System.Collections.Generic.List`1[System.String]>]
[<CommonParameters>]
Get-SCDriverPackage
[-VMMServer <ServerConnection>]
[[-Tag] <System.Collections.Generic.List`1[System.String]>]
[<CommonParameters>]
Get-SCDriverPackage
[-VMMServer <ServerConnection>]
[-All]
[<CommonParameters>]
Get-SCDriverPackage
[-VMMServer <ServerConnection>]
[-ID <Guid>]
[<CommonParameters>]
说明
Get-SCDriverPackage cmdlet 获取存储在 Virtual Machine Manager (VMM) 库共享中的一个或多个驱动程序包。
示例
示例 1:获取存储在 VMM 库中的所有驱动程序包
PS C:\> Get-SCDriverPackage
此命令获取存储在 VMM 库中的所有驱动程序包,并向用户显示有关每个驱动程序包的信息。
示例 2:按其即插即用 ID 获取驱动程序包
PS C:\> Get-SCDriverPackage -PnPID "ROOT\VMBUS"
此命令获取具有“ROOT\VMBUS”的即插即用 ID(PnPID)的驱动程序包。
示例 3:获取具有指定标记值的所有驱动程序包
PS C:\> Get-SCDriverPackage -Tag "Production"
此命令获取具有生产标记值的所有驱动程序包。
参数
-All
指示此 cmdlet 获取独立于父对象的所有从属对象。
例如,该命令 Get-SCVirtualDiskDrive -All
获取所有虚拟磁盘驱动器对象,而不考虑每个虚拟磁盘驱动器对象都与之关联的虚拟机对象或模板对象。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ID
将数字标识符指定为特定对象的全局唯一标识符或 GUID。
类型: | Guid |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-PnPID
指定驱动程序包支持的即插即用 ID(PnP)。 可以使用此参数查询具有匹配的 PnP ID 值的驱动程序包。
类型: | System.Collections.Generic.List`1[System.String] |
Position: | 0 |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Tag
指定要与对象关联的单词或短语,以便可以搜索具有指定标记集的所有对象。 可以搜索标记的子集,也可以搜索完整的标记集。
类型: | System.Collections.Generic.List`1[System.String] |
Position: | 0 |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-VMMServer
指定 VMM 服务器对象。
类型: | ServerConnection |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
输出
DriverPackage[]
此 cmdlet 返回 DriverPackage 对象的数组。