Verbose PowerShell
Usually,
EMS gets on with whatever you ask it to do and doesn’t give any
indication of the processing it performs in the background. You ask for
a new mailbox to be created, and it’s created, or some problem occurs
that stops the command from executing. If the problem originates with
an error introduced by the user, such as an error in syntax or
attempting to do something that doesn’t make sense, such as creating a
mailbox in a database that doesn’t exist, you can just fix the problem
and try again.
Sometimes you need to know exactly what EMS does
to help track down a problem, perhaps to provide information to
Microsoft support to help them figure out what’s going on in your
Exchange deployment. You might just want to know what’s happening when
you execute a command. In either case, you can add the /verbose switch
to a command to have PowerShell generate details of exactly what it
does as it proceeds. Figure 1
shows some of the output when the New-MailboxDatabase cmdlet is used to
create a new mailbox database. You can see how EMS validates the
context within which it is executing, including checks to locate a
global catalog server, validate RBAC authorization, and confirm that
the mailbox database doesn’t already exist.