How Can I See the Possible Parameters for a Cmdlet?
Entering the cmdlet in the console with -?
as a parameter displays information about that cmdlet, along with the available parameters. Listing 2.1 shows an example.
Get-SPSite -?
Some cmdlets, such as Get-SPSite
, have different variations of parameters. These variations also are displayed within the information provided by the -?
parameter, as Figure 2.1 shows.
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.