Exchange Powershell for O365
Posted by rbTech Staff, Last modified by rbTech Staff on 25 July 2016 01:55 PM

We've been doing a LOT with Exchange online, and running powershell is a very handy way to avoid the point-and-click hell that Microsoft products are famous for.  However, getting an Exchange Management shell started from a workstation is a non-obvious procedure.

Here it is step by step (what you type is conveniently bolded for your reading pleasure):

Launch Powershell.
PS C:\WINDOWS\system32> $UserCredential = Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
PS C:\WINDOWS\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection
PS C:\WINDOWS\system32> Import-PSSession $Session

WARNING: The names of some imported commands from the module 'tmp_kdc1ftti.ivr' include unapproved verbs that might
make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the
Verbose parameter. For a list of approved verbs, type Get-Verb.

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.0        tmp_kdc1ftti.ivr                    {Add-AvailabilityAddressSpace, Add-DistributionGroupMember...

PS C:\WINDOWS\system32>



(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).