Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
PowerShell command window with a title bar "Microsoft Azure Active Directory Module for Windows PowerShell" is either deprecated or obsolete.
I still use the old Azure AD module for W indows, but yes, it was deprecated.
You can try to download it from these links though:
https://www.microsoft.com/en-us/download/detail...
https://bposast.vo.msecnd.net/MSOPMW/Current/am...
If your getting connection errors try to download the old version.
If I want to perform Office 365 PowerShell commands like "Restore-MsolUser -UserPrincipalName <account>" , I need to authenticate using Connect-MsolService first.
Yes .It is included in this connection command :
$Creds = Get-Credential
Connect-MsolService –Credential $Creds
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powerShell-liveID... -Credential $Creds -Authentication Basic -AllowRedirection
Import-PSSession $Session
This script let you connect to MSOL and Exchange in the same session
If I want to perform AzureAD PowerShell commands I need to authenticate using Connect-AzureAD.
Yes . You can tell me which one and I can help you with it
I also believe even though there is an AzureAD command for removing accounts (soft delete), I do not believe there is its counter part command for restoring?
Soft delete:
remove-MsolUser -UserPrincipalName user@example.com
Hard Delete (delete from deleted)
Remove-MsolUser -UserPrincipalName user@example.com -RemoveFromRecycleBin -Force
Restore User (Soft deleted)
Restore-MsolUser -UserPrincipalName user@example.com
best regards !
germain