Self-documenting so I know how to do this myself later!
Time to read: ~ 4 minutes
tl;dr: Save your command as a [scriptblock] variable and then use .InvokeReturnAsIs method
Update: 2018-04-24 Added examples of using simple functions as well.
Continue reading “Using Scriptblocks in PSCustomObjects”
Because I believe you should be using Splats anyway
And no I’m not talking about -join
Time to read: ~1.5 minute
Update: 2018-03-22 – Had the wrong link to Warren’s post on Join-Object; Added more examples on request.
Update: 2018-03-23 – Code and screenshot for LEFT JOIN was actually for FULL OUTER JOIN. Updated
Continue reading “Wait! There are JOINS in PowerShell???”
Some errors are stupid but some errors are helpful and it’s just you that’s stupid
Check yo’self before you wreck yo’self!
Because Christmas should be a time of PowerShell and debugging rather than this “joy” thing…
Stopping you from running ALL THE CODE