Document -AsLiteral
switch for ConvertFrom-StringData
cmdlet
#10769
Labels
hold-for-pr
Waiting - for PR merge
hold-for-release
Waiting - for next release
issue-doc-idea
Issue - request for new content
Milestone
Prerequisites
Get-Foo
cmdlet" instead of "New cmdlet."Summary
Need to document the
-AsLiteral
switch forConvertFrom-StringData
cmdlet, which auto escapes input strings coming from pipeline.Details
Currently if you want to escape strings before piping to
ConvertFrom-StringData
, you need to replace or escape beforehand:With the new
-AsLiteral
switch, it escapes input strings automatically:Articles
Related Source Pull Requests
-AsLiteral
switch toConvertFrom-StringData
cmdlet PowerShell/PowerShell#21007Related Source Issues
ConvertFrom-StringData
-Raw switch to parse data field as literal PowerShell/PowerShell#20418The text was updated successfully, but these errors were encountered: