July 2018
Beginner
552 pages
13h 18m
English
In order to always support all common parameters, it is recommended to include a CmdletBinding attribute in your cmdlet, even if you do not want to use any parameters. This gives the executing user full control over error handling and output. Additionally, always use the proper verbs to express what your function does. Get-Verb shows plenty of approved verbs that will make your cmdlet easier to find:

Using the CmdletBinding attribute is very easy and provides many benefits. There is no reason to not go the proverbial extra mile in the form of a couple of keystrokes, as seen in the following code sample:
# CmdletBinding to allow ...
Read now
Unlock full access