Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
Powershell Module installieren
Powershell Module für M365 installieren.
Ein paar Scripte unter: https://github.com/frankenfrank/microsoft/tree/main/M365
Powershell upgrade
- 1. Installation über Winget
winget install –id Microsoft.PowerShell –source winget
- PowerShell 7 starten
Nach der Installation wurde PowerShell 7 über den Befehlpwsh
oder über das Startmenü gestartet. - Version prüfen um sicherzustellen, dass PowerShell 7 verwendet wird:
$PSVersionTable.PSVersion
Powershell Gallery
Download
https://www.powershellgallery.com/packages/PackageManagement
Downloaddatei umbennenen von *.nupkg → *.zip
entpacken nach $home\Documents\WindowsPowerShell\Modules\PackageManagement\
Import-Module "$home\Documents\WindowsPowerShell\Modules\PackageManagement\PackageManagement.psm1" -Force
Test
Test-ModuleManifest -Path "C:\Users\frank\Documents\WindowsPowerShell\Modules\PackageManagement\PackageManagement.psd1"
M365 Module
1. AzureAD Modul installieren
Install-Module -Name AzureAD -Scope CurrentUser
2. ExchangeOnlineManagement Modul installieren
Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser
3. Microsoft.Graph Modul installieren
Install-Module -Name Microsoft.Graph -Scope CurrentUser
4. MicrosoftTeams Modul installieren
Install-Module -Name MicrosoftTeams -Scope CurrentUser