« 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


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.


$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


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

November 2024
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  
 << <   > >>
Brinley Ang

Brinley Ang is a software engineer, sysadmin, 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
© 2024 - Brinley Ang
Valid xhtml