Today I learned something new in PowerShell.
I was working on a workflow where I had to move a PowerShell object from one activity to another. The problem was, I could only pass it as a string.
So I had the data as string, but not my loved object anymore 😄
That was the moment where `ConvertFrom-StringData` was really useful. It helped me convert simple `Key=Value` string data back into something PowerShell can work with properly.
I am using PowerShell for a long time, but this cmdlet was new for me. And funny enough, I had situations before where I could have used exactly this.
Small cmdlet, big help.
That is what I like about PowerShell. It does not matter how long you work with it, there is always something new to learn.
I wrote a short blog post about it
#PowerShell #PowerShellScripting #Microsoft #Learning