PowerShell Environment Setup

Everything needed to get a fresh terminal up to speed with the scripts folder.


Point the local Scripts folder at the OneDrive source so all scripts are available:

New-Item -ItemType SymbolicLink -Path "C:\Users\Rick\Scripts" -Target "C:\Users\Rick\OneDrive - Coytis\Scripts"

Requires admin or Developer Mode enabled.


2. Set Execution Policy

Allow local scripts to run:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

3. Install Modules

Exchange Online

Install-Module ExchangeOnlineManagement

Microsoft Graph

Install-Module Microsoft.Graph.Identity.SignIns
Install-Module Microsoft.Graph.Users

4. Verify

Get-Module ExchangeOnlineManagement -ListAvailable
Get-Module Microsoft.Graph.Identity.SignIns -ListAvailable
Get-Module Microsoft.Graph.Users -ListAvailable

Notes

  • Scripts live at C:\Users\Rick\OneDrive - Coytis\Claude\Scripts — symlinked from C:\Users\Rick\Scripts
  • Exchange connects via browser (Chrome preferred for 1Password extension)
  • Graph connects via WAM popup — -ContextScope Process on all scripts keeps sessions isolated per tab