PowerShell PSCustomObject - Custom Object, the way it was meant to be

Everything is an object in PowerShell, and ability to create own object allows for one more way of controlling and handling data. In this video I’ll take you through the steps of creating PSCustomObject, working with its properties to doing more advanced topics - like adding methods and types to the object. <#PSScriptInfo .VERSION 1.0.0 .GUID f5228c81-d25c-4984-bb0c-e64576487b3e .AUTHOR Kamil Procyszyn .COPYRIGHT Kamil Procyszyn .PROJECTURI https://github.com/kprocyszyn/About-PowerShell .RELEASENOTES 2021 November .DESCRIPTION Link to the video: https://youtu....

2 November 2021 · 3 min · 620 words · Kamil

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