You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The syntax section of about_Data_Sections displays the following syntax diagram:
DATA [-supportedCommand <cmdlet-name>] {
<Permitted content>
}
However, as shown in Microsoft.PowerShell.Operation.Validation.psm1, you can specify a name for the Data section. That name becomes a variable that holds the hashtable that ConvertFrom-StringData returns.
DATA newVariable {
ConvertFrom-StringData @'
Key=Value
'@
}
PS C:\> $newVariable.Key
Value
Please document this valid format and be sure to include the version of Windows PowerShell in which it became valid. Thanks!
Activity
Syncing from original (#1)