: Click Start, type "PowerShell," right-click it, and select Run as Administrator .
If you are looking for the , it is important to know that Microsoft has officially deprecated the older "MSOnline" and "AzureAD" modules. While you can still install them for legacy scripts, Microsoft now recommends migrating to the Microsoft Graph PowerShell SDK for managing identities.
Below is a guide on how to download and install the 64-bit version of the Azure AD module, as well as the modern replacement. 1. How to Install the Legacy Azure AD Module (64-bit)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ``` Use code with caution.
: When prompted to install from an "untrusted repository," type Y and press Enter. Connect : You can now log in by running Connect-AzureAD . 2. Critical Deprecation Notice
: To ensure you can connect to the gallery, run this command to enable TLS 1.2: powershell