PowerShell tips and tricks – Multipart/form-data requests

Introduction If you ever came across a need to invoke a request that needs to oblige to Multipart/form-data standard in PowerShell, you probably got to know quite quickly that none of commonly used cmdlets do support it. Both, Invoke-WebRequest and Invoke-RestMethod are unaware on how to format the request body in order to comply to […]

PowerShell tips and tricks – Decoding SecureString

Introduction It is quite common to get across SecureString type in PowerShell. If you ever needed to supply a credential object, at example to the Invoke-RestMethod cmdlet, then you for sure came across a SecureString. I will describe a couple of “tricks” that can be useful meanwhile working with SecureString objects. Creating a SecureString This […]