ArtikelRahmen V5 Pscripts MS365 SPO V2

“install” & “connect”

  • The module can be easily installed via the "Install-Module Microsoft.Online.SharePoint.PowerShell“ command.
  • After installation, you can connect to the SharePoint Online service with the command “Connect-SPOService -Url [SITE-URL]“.

SharePoint.Online” Commands


PowerShell-BefehlBeschreibung
Install-Module Microsoft.Graph -Force
Connect-MgGraph -Scopes “User.ReadWrite.All”, “Group.ReadWrite.All”, “Directory.ReadWrite.All”
New-MgUserErstellt einen neuen Benutzer
Get-MgUserRuft Benutzerinformationen ab
Update-MgUserAktualisiert Benutzerinformationen
Remove-MgUserEntfernt einen Benutzer
New-MgGroupErstellt eine neue Gruppe
Get-MgGroupRuft Gruppeninformationen ab
Update-MgGroupAktualisiert Gruppeninformationen
Remove-MgGroupEntfernt eine Gruppe
New-MgSettingFügt neue Einstellungen hinzu
Get-MgSettingRuft Einstellungen ab
Update-MgSettingAktualisiert Einstellungen
Remove-MgSettingEntfernt Einstellungen
New-MgDistributionGroupErstellt eine neue Verteilergruppe
Get-MgDistributionGroupRuft Verteilergruppeninformationen ab
Update-MgDistributionGroupAktualisiert Verteilergruppeninformationen
Remove-MgDistributionGroupEntfernt eine Verteilergruppe
New-MgSecurityGroupErstellt eine neue Sicherheitsgruppe
Get-MgSecurityGroupRuft Sicherheitsgruppeninformationen ab
Update-MgSecurityGroupAktualisiert Sicherheitsgruppeninformationen
Remove-MgSecurityGroupEntfernt eine Sicherheitsgruppe
New-MgApplicationErstellt eine neue Anwendung
Get-MgApplicationRuft Anwendungsinformationen ab
Update-MgApplicationAktualisiert Anwendungsinformationen
Remove-MgApplicationEntfernt eine Anwendung