Skip to content

nikkelly/microsoftServicesProfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 

Repository files navigation

Microsoft Services PowerShell Profile

Connect to Microsoft 365 services with a single command

IMAGE

Installation

PowerShell

git clone https://github.com/nikkelly/microsoftServicesProfile.git

.<download directory>\servicesProfilev2.ps1 -install

First Time Setup

<download directory>\servicesProfilev2.ps1 -install Image

<download directory>\servicesProfilev2.ps1 -uninstall IMAGE

add-account IMAGE

remove-account IMAGE

Usage

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

Notes

  • 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

Changelog for v2.0

  • Refactored the entire project to be more dynamic
  • No more auto-prompt for credentials
  • Now allows for blank passwords
  • Fixed an issue with SharePoint

About

Simplifying the way you manage Microsoft 365 with PowerShell

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published