====== 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 Befehl ''pwsh'' 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|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 "$home\Documents\WindowsPowerShell\Modules\PackageManagement\PackageManagement.psd1"'' ===== M365 Module ===== - AzureAD Modul installieren \\ ''Install-Module -Name AzureAD -Scope CurrentUser'' - ExchangeOnlineManagement Modul installieren \\ ''Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser'' - Microsoft.Graph Modul installieren \\ ''Install-Module -Name Microsoft.Graph -Scope CurrentUser'' - MicrosoftTeams Modul installieren \\ ''Install-Module -Name MicrosoftTeams -Scope CurrentUser''