Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Example 9: Use a different delimiter to split a string into a hashtable
- ```powershell
- $Here = @'
- Msg1 : The string parameter is required.
- Msg2 : Credentials are required for this command.
- Msg3 : The specified variable does not exist.
- '@
- ConvertFrom-StringData -StringData $Here -Delimiter ':'
- ```
- ```Output
- Name Value
- ---- -----
- Msg3 The specified variable does not exist.
- Msg2 Credentials are required for this command.
- Msg1 The string parameter is required.
- ```
- ### -Delimiter
- Specifies the delimiter on which to split the string.
- The parameter name is optional.
- The value of this parameter must be a char that is enclosed in single quotation marks, or a char
- that is enclosed in double quotation marks.
- ```yaml
- Type: String
- Parameter Sets: (All)
- Aliases:
- Required: False
- Position: 1
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement