Getting a list of all available commands
PowerShell is a growing library of tools that admins and developers can use to directly interact with the "backend" of an Office 365 tenant. Knowing which options are available is critical to using the most up-to-date and capable function to accomplish your task. In this recipe, we'll request a list of all available commands by PowerShell.
Getting ready
Using the skills learned in the Setting up the PowerShell environment recipe from Chapter 1, Office 365 Setup and Basic Administration, connect to your Office 365 tenant via PowerShell.
The module name in the command string can be replaced by the name of the PowerShell module you'd like to query (for example, MsOnline
for basic commands; AzureAD
for Azure AD-specific commands). The example that follows shows MsOnline
, which provides many basic commands. However, advanced users will need to install and run more advanced modules, including Azure AD, Teams, SharePoint...