Connect to Microsoft 365 services with a single command
git clone https://github.com/nikkelly/microsoftServicesProfile.git
.<download directory>\servicesProfilev2.ps1 -install
<download directory>\servicesProfilev2.ps1 -install
<download directory>\servicesProfilev2.ps1 -uninstall
Service Command | Module Documentation |
---|---|
Teams |
Microsoft Teams |
Exchange |
Microsoft Exchange Online |
AzureAD |
Azure Active Directory (AAD V2 PowerShell) |
MSOnline |
MSOnline (AAD V1 Powershell) |
SharePoint |
SharePoint |
Security_Compliance |
Security and Compliance Center |
Disconnect
close all active connections
connectAll
connect to all services at once
Remove-Account
Remove saved Account
Add-MFA
Add MFA to saved account credentials
Remove-MFA
Remove MFA from saved account credentials
$microsoftUser
Full user name of the admin user: admin@contoso.onmicrosoft.com
$domain
Full domain name of the admin user: contoso.onmicrosoft.com
- Supports accounts with MFA enabled
- Username and Password are saved to environment variables as encrypted standard strings
- Will prompt for install if module is not already installed
- All of the listed service commands (Teams/SharePoint/etc.) will perform these checks:
- Is the user an admin?
- Is the necessary module installed? If not already installed, prompt the user for install
- Refactored the entire project to be more dynamic
- No more auto-prompt for credentials
- Now allows for blank passwords
- Fixed an issue with SharePoint