PowerShell – Exportieren User aus einer O365 Gruppe
#Exportiere User aus Gruppe XYZ #Import der Azure Active Directory Module (PowerShell Session) Import-Module MSOnline #Capture administrative credential for future connections. $credential = get-credential #Aktuelles Datum auslesen und in die Variable $Heute schreiben $Heute = Get-Date -Format d #Exportieren der Gruppen XYZ (GrouObjectID erforderlich) Get-MsolGroupMember -GroupObjectId XYZ| export-csv C:\Reports\AlleUser_$Heute.csv
PowerShell – Exportieren User aus einer O365 Gruppe Read More »