Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » ConvertFrom-StringData

ConvertFrom-StringData - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Short description
Converts a string containing one or more key/value pairs to a hash table.

ConvertFrom-StringData [-StringData] <string> [<CommonParameters>]

The ConvertFrom-StringData cmdlet converts a string that contains one or more key/value pairs into a hash table.  B
    ecause each key/value pair must be on a separate line, here-strings are often used as the input format.
    The ConvertFrom-StringData cmdlet is considered to be a safe cmdlet that can be used in the DATA section of a scrip
    t or function. When used in a DATA section, the contents of the string must conform to the rules for a DATA section
    . For more information, see about_Data_Sections.