Connect-MgGraph -Scopes "User.Read.All", "Group.Read.All"
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX office 365 cmd
cd "C:\Program Files\Microsoft Office\root\Office16" cscript ospp.vbs /dstatus Connect-MgGraph -Scopes "User
You can check the status of your Office license or find your product key using specific commands. Connect-MgGraph -Scopes "User.Read.All"
Schedule tasks like license cleanup or user offboarding.
Run this command to get the core tools: Install-Module Microsoft.Graph -Scope CurrentUser
# 1. Get the user $User = Get-MgUser -UserId "john.doe@yourcompany.com"