New-ExampleInfo
建立 PowerShell 物件,代表 Crescendo 命令物件中使用的範例。
語法
New-ExampleInfo
[-command] <String>
[-description] <String>
[[-originalCommand] <String>]
[<CommonParameters>]
Description
建立 PowerShell 物件,代表 Crescendo 命令物件中使用的範例。 產生的物件可以轉換成 JSON,以插入組態檔,或稍後新增至命令物件轉換成 JSON。
範例
範例 1
New-ExampleInfo -command Get-Something -originalCommand native.exe -description 'this is some text' |
ConvertTo-Json
{
"Command": "Get-Something",
"OriginalCommand": "native.exe",
"Description": "this is some text"
}
參數
-command
所描述範例的命令行。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-description
範例的描述。
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-originalCommand
針對此 Cmdlet 範例執行的原始原生命令。
類型: | String |
Position: | 2 |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None