Supplying Options for Cmdlets
One of the useful features of Windows PowerShell is the standardization of the syntax in working with cmdlets. This vastly simplifies the learning of the new shell and language. Table 1-1 lists the common parameters. Keep in mind that all cmdlets will not implement these parameters. However, if these parameters are used, they will be interpreted in the same manner for all cmdlets because it is the Windows PowerShell engine itself that interprets the parameter.
Table 1-1. Common Parameters
Parameter | Meaning |
|---|---|
-whatif | Tells the cmdlet to not execute but to tell you what would happen if the cmdlet were to run |
-confirm | Tells the cmdlet to prompt before executing the command |
-verbose | Instructs the cmdlet to provide a higher level ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access