Information Technology

PSBoundParameters – Credentials

The PSBoundParameter is an amazing tool that will clear your mind of worries about non-mandatory parameter sets. In my Super Help Desk module I use the credential flag. Inside this flag, I tell the system to use the credentials provided or the currently running credentials. I do this by testing the $PSBoundParameter.ContainsKey(‘Credential’). What this basically…