« Download installers for eTax 2012 and 2013Connecting to Microsoft Office 365 on Android »

Quickstart guide to login into Microsoft 365 Powershell

Technical, Microsoft, 163 words   Bookmark and Share


Microsoft 365 has a bunch of additional features not found on their OWA (Outlook web application) which you can access via Powershell, however you will need at least a Computer Science degree to use MS’ Powershell.

If you like reading and would like to find out more about Powershell from MS, check out

http://onlinehelp.microsoft.com/office365-enterprises/hh124998.aspx

Fortunately, Ross provided me a couple of commands to log into 365’s powershell easily.

Firstly, ensure that your executionpolicy is set to RemoteSigned. If unsure just run the following

Code

Set-ExecutionPolicy RemoteSigned

To login to 365 via powershell, if you have MSOnline modules (instructions on installing MSOnline in the above Powershell link), try the following with your 365 Admin account or try alternate method further below.

Code

$user = "admin@yourdomain.com.au"
$cred = Get-Credential -Credential $user
Import-Module MSOnline
Connect-MsolService -Credential $cred
$msoExchangeURL = “https://ps.outlook.com/powershell/”
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $msoExchangeURL -Credential $cred -Authentication Basic -AllowRedirection
Import-PSSession $session

Otherwise try this if you don’t

Code

$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $session


Trackback address for this post

Trackback URL (right click and copy shortcut/link location)

No feedback yet

This post has 27 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)
3 minus 2?
Please answer the question above.


July 2015
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Brinley Ang

Brinley Ang is a sysadmin, web dev, coder, geek boy, jedi knight fragger, caffine addict, deaf meloncholic and rockstar wannabe. Listens to the sex pistols and a wide assortment of heavy metal.

Make payments with PayPal - it's fast, free and secure!
Search
home | portfolio | blog | links | contact
© 2015 - Brinley Ang
Valid xhtml