Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. ### Example 9: Use a different delimiter to split a string into a hashtable
  2.  
  3. ```powershell
  4. $Here = @'
  5. Msg1 : The string parameter is required.
  6. Msg2 : Credentials are required for this command.
  7. Msg3 : The specified variable does not exist.
  8. '@
  9. ConvertFrom-StringData -StringData $Here -Delimiter ':'
  10. ```
  11.  
  12. ```Output
  13. Name Value
  14. ---- -----
  15. Msg3 The specified variable does not exist.
  16. Msg2 Credentials are required for this command.
  17. Msg1 The string parameter is required.
  18. ```
  19.  
  20. ### -Delimiter
  21.  
  22. Specifies the delimiter on which to split the string.
  23. The parameter name is optional.
  24.  
  25. The value of this parameter must be a char that is enclosed in single quotation marks, or a char
  26. that is enclosed in double quotation marks.
  27.  
  28. ```yaml
  29. Type: String
  30. Parameter Sets: (All)
  31. Aliases:
  32.  
  33. Required: False
  34. Position: 1
  35. Default value: None
  36. Accept pipeline input: False
  37. Accept wildcard characters: False
  38. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement