Chirishman bio photo


Sysadmin with an interest in PowerShell, automation, SBCs, and Datavis.


@the_chirishman Github Stackoverflow RSS Feed

My GitHub Repos

ADAuth Keystore PowerArchiver Powershell-SlackBot StoredPSCredential


To evaluate something and also store it in a variable in the most concise way possible

The extra set of Parentheses causes the statement to return it’s value as well as storing it in the variable, in this case $a. This is called variable squeezing.

This is especially useful in while loops. The example below is taken from a script which I wrote to listen for a machine to come back from a reboot.