-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef5c020
commit b4208db
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Set-Location C:\ | ||
Clear-Host | ||
|
||
#We need the module (without the parameter for a specific version) | ||
Install-Module -Name ExchangeOnlineManagement -AllowClobber -Force -Verbose | ||
|
||
#More specific if you want | ||
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.0.0 -AllowClobber -Force -Verbose | ||
|
||
#Let's import the module | ||
Import-Module ExchangeOnlineManagement | ||
|
||
#Check the version (if you have not selected a version) | ||
Get-InstalledModule -Name ExchangeOnlineManagement | ||
|
||
#Now we connect to Exchange Online | ||
Connect-ExchangeOnline | ||
|
||
#Install the Azure AD Module | ||
Install-Module -Name AzureAD -AllowClobber -Force -Verbose | ||
|
||
#Let's import the module | ||
Import-Module AzureAD | ||
|
||
#Now we connect to Azure Active Directory | ||
Connect-AzureAD | ||
|
||
Disconnect-AzureAD | ||
Disconnect-ExchangeOnline |