Skip to content

Commit 9814cf2

Browse files
Add -Scope CurrentUser option for install/update
Added info on installing / updating the module using the CurrentUser scope to avoid needing administrative privileges.
1 parent 815c134 commit 9814cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The EXO V2 module is supported in the following versions of Windows:
185185
186186
### Install the EXO V2 module
187187

188-
To install the EXO V2 module for the first time, complete the following steps **in an elevated PowerShell window**:
188+
To install the EXO V2 module for the first time, complete the following steps **in an elevated PowerShell window** (or instead include `-Scope CurrentUser` in the `Install-Module` command below):
189189

190190
1. Install or update the PowerShellGet module as described in [Installing PowerShellGet](https://docs.microsoft.com/powershell/scripting/gallery/installing-psget).
191191

@@ -221,7 +221,7 @@ If the module is already installed on your computer, you can run the following c
221221
Import-Module ExchangeOnlineManagement; Get-Module ExchangeOnlineManagement
222222
```
223223

224-
2. You can use the **Update-Module** cmdlet **in an elevated PowerShell window** to update the EXO V2 module from the PowerShell Gallery. Typically, you'll want the latest public version of the module, but you can also upgrade to a Preview version if one is available.
224+
2. You can use the **Update-Module** cmdlet **in an elevated PowerShell window** to update the EXO V2 module from the PowerShell Gallery. If you installed with `-Scope CurrentUser` then there is no need to use elevation. Typically, you'll want the latest public version of the module, but you can also upgrade to a Preview version if one is available.
225225

226226
- To upgrade to **the latest public version** of the module, run the following command:
227227

0 commit comments

Comments
 (0)