Get-CMDeviceVariable
Get-CMDeviceVariable
Gets device variables.
構文
Parameter Set: SearchByIdMandatory
Get-CMDeviceVariable -ResourceId <String> -VariableName <String> [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Get-CMDeviceVariable -DeviceName <String> -VariableName <String> [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Get-CMDeviceVariable -Device <IResultObject> -VariableName <String> [ <CommonParameters>]
詳細説明
The Get-CMDeviceVariable cmdlet gets device variables. Individual devices have device variables. Task sequence processing uses device variables.
パラメーター
-Device<IResultObject>
Specifies a CMDevice object. To obtain a CMDevice object, use the Get-CMDevice cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DeviceName<String>
Specifies a device name. You can specify a NetBIOS name or a fully qualified domain name (FQDN).
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ResourceId<String>
Specifies a Systems Management Server (SMS) ID.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-VariableName<String>
Specifies the name of the device variable.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Get a variable value by using its name
This command gets the value of the variable named HostDrive for the specified computer.
PS C:\> Get-CMDeviceVariable -DeviceName "Computer073" -VariableName "HostDrive"