Created
September 30, 2016 15:40
-
-
Save glaisne/634e5bbe8872f187e96e0a4c533bd2b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if (get-module MSOnline -ListAvailable -ea 0) | |
{ | |
try | |
{ | |
import-module MSOnline -ErrorAction Stop | |
} | |
catch | |
{ | |
$err = $err | |
Write-Error "Unable to load module MSOnline.`nSee https://technet.microsoft.com/library/dn975125.aspx`n$($err.exception.message)" | |
} | |
} | |
else | |
{ | |
Write-Warning "Unable to access the MSOnline Module. See: https://technet.microsoft.com/library/dn975125.aspx" | |
Write-host -ForegroundColor Yellow " To setup MSOnLine Module (Used to access Office 365 account information) follow these steps:" | |
Write-host -ForegroundColor Yellow " Go to the above url (https://technet.microsoft.com/library/dn975125.aspx)" | |
Write-host -ForegroundColor Yellow " A short way down the page, under 'Step 1: Install required software' click the link" | |
Write-host -ForegroundColor Yellow " for #1 to download and install the 64-bit version of the 'Microsoft Online Services Sign-in Assistant for IT Professionals RTW'" | |
Write-host -ForegroundColor Yellow " at http://go.microsoft.com/fwlink/p/?LinkId=286152" | |
Write-host -ForegroundColor Yellow " Once that software has been downloaded and installed, download and install the software at #2" | |
Write-host -ForegroundColor Yellow " The 'Windows Azure Active Directory Module for Windows PowerShell (64-bit version)'" | |
Write-host -ForegroundColor Yellow " at http://go.microsoft.com/fwlink/p/?linkid=236297" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment