forked from jdhitsolutions/PSScriptTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConvert-HashTableToCode.yml
More file actions
48 lines (42 loc) · 1.25 KB
/
Copy pathConvert-HashTableToCode.yml
File metadata and controls
48 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
examples:
- name: Example 1
preCode: ''
code: >-
PS C:\> $h = @{Name="SRV1";Asset=123454;Location="Omaha"}
PS C:\> convert-hashtabletocode $h
@{
Name = 'SRV1'
Asset = 123454
Location = 'Omaha'
}
postCode: Convert a hashtable object to a string equivalent that you can copy into your script.
inputs:
- type: System.Collections.Hashtable
description: ''
links:
- href: https://github.com/jdhitsolutions/PSScriptTools/blob/master/docs/Convert-HashTableToCode.md
text: 'Online Version:'
- href: ./Convert-HashtableString.md
text: Convert-HashtableString
module:
name: PSScriptTools
name: Convert-HashTableToCode
notes: 'Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/'
optionalParameters: []
outputs:
- type: System.String
description: ''
requiredParameters:
- name: Hashtable
aliases: []
defaultValue: None
description: A hashtable to convert. In can be standard or ordered hashtable.
parameterValueGroup: []
pipelineInput: True (ByValue)
position: 0
type: Hashtable
remarks: Use this command to convert a hashtable into its text or string equivalent.
summary: Convert a hashtable to a string representation.
syntaxes:
- parameters:
- Hashtable