Get-CMDeviceVariable

Gets device variables.

Syntax

Get-CMDeviceVariable
   -DeviceName <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-VariableName <String>]
   [<CommonParameters>]
Get-CMDeviceVariable [-DisableWildcardHandling] [-ForceWildcardHandling] -InputObject 
 [-VariableName ] []
Get-CMDeviceVariable [-DisableWildcardHandling] [-ForceWildcardHandling] -ResourceId 
 [-VariableName ] []

Description

The Get-CMDeviceVariable cmdlet gets device variables. Individual devices have device variables. Task sequence processing uses device variables.

Examples

Example 1: Get a variable value by using its name

PS C:\> Get-CMDeviceVariable -DeviceName "Computer073" -VariableName "HostDrive"

This command gets the value of the variable named HostDrive for the specified computer.

Required Parameters

-DeviceName

Specifies a device name. You can specify a NetBIOS name or a fully qualified domain name (FQDN).

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:IResultObject
Aliases:Device
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ResourceId

Specifies a Systems Management Server (SMS) ID.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VariableName

Specifies the name of the device variable.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False