Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Connect to Office 365 organization using Powershell

Active Directory, Domain, DNS, WINS, DHCP, SBS, New Releases.

Connect to Office 365 organization using Powershell

Postby chicagotech » Tue Jan 16, 2018 3:26 pm

Q: How can I connect to your Office 365 organization using Office 365 PowerShell to perform Office 365 administration tasks from the command line?

A: Connecting to Office 365 PowerShell is a simple three-step process where you install the required software, run the required software, and then connect to your Office 365 organization

Step 1: Install required software

1.Install the 64-bit version of the Microsoft Online Services Sign-in Assistant: Microsoft Online Services Sign-in Assistant for IT Professionals RTW.

2.Install the 64-bit version of the Microsoft Azure Active Directory Module for Windows PowerShell with these steps:

•Open the Azure Active Directory Connection web page.

•In Files in Download at the bottom of the page, click Download for the AdministrationConfig-V1.1.166.0-GA.msi file, and then install it.

Step 3: Connect to your Office 365 subscription

To connect with just an account name and password :

1.In the Microsoft Azure Active Directory Module for Windows PowerShell command window, run the following commands.

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

2.In the Windows PowerShell Credential Request dialog box, type your Office 365 work or school account user name and password, and then click OK.
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 7178
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA

Return to Windows

Your Ad Here

Who is online

Users browsing this forum: Google [Bot] and 5 guests