Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwechsler authored Oct 17, 2022
1 parent ef5c020 commit b4208db
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Connect_Microsoft_Cloud.ps1
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

0 comments on commit b4208db

Please sign in to comment.