githubEdit

MSOnline Powershell Module for MO365

Commands:

1) Import MSOnline powershell module

Import-Module MSOnline 

2) Authentication

Connect-MsolService 

$credential = Get-Credential

Connect-MsolService -Credential $credential

3) Account and Directory Information

List Company Information

Get-MSolCompanyInformation 

List all users

Get-MSolUser -All 

List all groups

List members of a group (Global Admins in this case)

List all user attributes

List Service Principals

One-liner to search all Azure AD user attributes for passwords

Last updated