Skip to content

Commit aeff3a6

Browse files
000-891: exofails
1 parent 9569421 commit aeff3a6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/en/Other/exologinfails.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,23 @@ Connect-ExchangeOnline -UserPrincipalName
1515
InvalidOperation: You cannot call a method on a null-valued expression.
1616

1717

18-
Check how many you have
18+
Check how many you have. If it's more than one, it is likely to cause an issue. Unless you have a very good reason to keep multiple versions, it's best to have only **one**.
1919

20+
```powershell
2021
get-module -ListAvailable | where {$_.Name -match "Exchange"}
2122
23+
24+
Uninstall all your modules. It will allow for a clean start.
25+
2226
Uninstall-Module -Name ExchangeOnlineManagement -force
2327
28+
Make sure all are uninstalled.
29+
2430
get-module -ListAvailable | where {$_.Name -match "Exchange"}
2531
2632
33+
Install the newest version. Check here to see the current version. Optionally, you can also skip the RequiredVersion parameter.
34+
2735
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.6.0
2836
2937
import-module -Name ExchangeOnlineManagement -MinimumVersion 3.0.0 -force

0 commit comments

Comments
 (0)