PowerShell – Module Install & Connect

# Install a module for all (only for the current User -Scope CurrentUser)

Install-Module ExchangeOnlineManagement

Install-Module PnP.PowerShell

Install-Module -Name MicrosoftTeams -Force -AllowClobber

Install-Module -Name AzureRM -AllowClobber

# Connect to Tennant with Module

Connect-ExchangeOnline -UserPrincipalName

Connect-MicrosoftTeams

Connect-PnPOnline -Url “ https://FCGRUPPE-ADMIN.sharepoint.com“ -Interactive

Connect-AzureRmAccount

# Install a module for all / Ignore Warnings

Install-Module -force

# Exchange v3 Manifest Settings

winrm set winrm/config/client/auth ‚@{Basic=“true“}‘

# Remote Signed Update

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Set-ExecutionPolicy RemoteSigned

# Uninstall a Module -> (SharePoint Classic)

Uninstall-Module SharePointPnPPowerShellOnline -Force -AllVersions

Uninstall-Module MicrosoftTeams -Allversions

# Register SharePoint Module

Register-PnPManagementShellAccess