Skip to content

Commit 081d4aa

Browse files
committed
Update exchange-online-powershell-v2.md
Issue #6882
1 parent 0daf030 commit 081d4aa

File tree

1 file changed

+47
-7
lines changed

1 file changed

+47
-7
lines changed

exchange/docs-conceptual/exchange-online-powershell-v2.md

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,19 +275,59 @@ If the module is already installed on your computer, you can run the following c
275275

276276
For detailed syntax and parameter information, see [Update-Module](https://docs.microsoft.com/powershell/module/powershellget/update-module).
277277

278-
**Note**: If you receive the following error:
278+
### Troubleshoot installing the EXO V2 module
279279

280-
> The specified module 'ExchangeOnlineManagement' with PowerShellGetFormatVersion '\<version\>' is not supported by the current version of PowerShellGet. Get the latest version of the PowerShellGet module to install this module, 'ExchangeOnlineManagement'.
280+
- If you receive the following error:
281281

282-
Update your installation of the PowerShellGet module to the latest version as described in [Installing PowerShellGet](https://docs.microsoft.com/powershell/scripting/gallery/installing-psget). Be sure to close and re-open the elevated PowerShell window before you attempt to update the ExchangeOnlineManagement module again.
282+
> The specified module 'ExchangeOnlineManagement' with PowerShellGetFormatVersion '\<version\>' is not supported by the current version of PowerShellGet. Get the latest version of the PowerShellGet module to install this module, 'ExchangeOnlineManagement'.
283+
284+
Update your installation of the PowerShellGet module to the latest version as described in [Installing PowerShellGet](https://docs.microsoft.com/powershell/scripting/gallery/installing-psget). Be sure to close and re-open the PowerShell window before you attempt to update the ExchangeOnlineManagement module again.
285+
286+
- As of April 2020, the PowerShell Gallery only supports connections using TLS 1.2 or later. For more information, see [PowerShell Gallery TLS Support](https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/).
287+
288+
To check your current settings in the Microsoft .NET Framework, run the following command in Windows PowerShell:
289+
290+
```powershell
291+
[Net.ServicePointManager]::SecurityProtocol
292+
```
293+
294+
As described in the PowerShell Gallery TLS Support article, to *temporarily* change the security protocol to TLS 1.2 to install the PowerShellGet or ExchangeOnlineManagement modules, run the following command in Windows PowerShell *before* you install the module:
295+
296+
```powershell
297+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
298+
```
299+
300+
To *permanently* enable strong cryptography in the Microsoft .NET Framework version 4.x or later, run one of the following commands based on your Windows architecture:
301+
302+
- x64:
303+
304+
```powershell
305+
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Type DWord -Value '1'
306+
```
307+
308+
- x86
309+
310+
```powershell
311+
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Type DWord -Value '1'
312+
```
313+
314+
For more information, see [SchUseStrongCrypto](/dotnet/framework/network-programming/tls#schusestrongcrypto).
283315
284316
### Uninstall the EXO V2 module
285317
286-
To uninstall the module, run the following command **in an elevated PowerShell window**:
318+
To uninstall the module, run **one** of the following commands based on how you originally installed the module (in an elevated PowerShell window vs. `Scope CurrentUser`):
287319
288-
```powershell
289-
Uninstall-Module -Name ExchangeOnlineManagement
290-
```
320+
- In an elevated PowerShell window (all users):
321+
322+
```powershell
323+
Uninstall-Module -Name ExchangeOnlineManagement
324+
```
325+
326+
- Only for the current user account:
327+
328+
```powershell
329+
Uninstall-Module -Name ExchangeOnlineManagement
330+
```
291331

292332
For detailed syntax and parameter information, see [Uninstall-Module](https://docs.microsoft.com/powershell/module/powershellget/uninstall-module).
293333

0 commit comments

Comments
 (0)