PowerShell for IT Professionals [#17] – Scripting part 4 – parameters, running remotely and formatting

In the last part of scripting series, we will make the script to be able to query remote machines, e.g. servers. We will also check how to add parameters to the script (and configure the default value of parameter) so that user will able to pass the parameter name like in a standard PowerShell cmdlet. Finally, we are going to format the script so that it looks more reliable and make some refactoring so that the logic is simpler....

19 October 2020 · 2 min · 425 words · Kamil