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 *** Email address is removed for privacy *** Hard Delete (delete from deleted) Remove-MsolUser -UserPrincipalName *** Email address is removed for privacy *** -RemoveFromRecycleBin -Force Restore User (Soft deleted) Restore-MsolUser -UserPrincipalName *** Email address is removed for privacy *** best regards ! germain
How to install the Azure Active Directory PowerShell Module. In order to connect to manage users and organisation settings in Office 365 via Powershell, you need to install the Azure Active Directory PowerShell Module. This can be simply installed via PowerShell itself. Why do you need the Azure Active Directory PowerShell Module? How to add Active Directory module in PowerShell in Windows 8? Ask Question Asked 4 years. Download and install Remote Server. 2.) For x64, install Windows8.1-KB2693643-x64.msu. STEP 3.) Active Feature. Select AD DS and AD LDS Tools and then select Active Directory Module for Windows PowerShell. To turn off specific tolos.
Today I share a script to automate all of the manual steps involved with setting up the Active Directory PowerShell module on your Windows 10 workstation.
Clickety, Click. Scripty, script.
I recently reloaded my everyday work laptop. After three years it had in-place upgrades from Windows 8 to Windows 8.1 to Windows 10. You can imagine that we dogfood a lot of software as Microsoft employees, so it was well past time for a reload.
As part of this I had to set up the Active Directory module. Since the process was more than one quick step, I decide this deserves a script to help everyone else in the world as well. How many steps does it take?
Download Windows Azure Active Directory Powershell Module
Find and download the CPU-architecture-appropriate Windows 10 RSAT package (Remote Server Administration Tools)
Install the RSAT
Enable the Active Directory PowerShell feature
Update-Help for the AD module
This is mostly a one-time task, except for updating the module help. Generally I only script things that are more repeatable. However, I know many of you like to reload your laptop on a regular basis. I also know that lots of people are deploying Windows 10 right now. So this seemed like a good community service project.
Download Active Directory Powershell Module For Windows 7
The Script
This script needs to run from an elevated ISE or console session, since it is configuring your system. Obviously it will only run on Windows 10, because that is the goal.
Like any good PowerShell scripter I borrowed code from various sources on the internet. I included comments with the links where I found handy code for downloading a file, installing a hotfix, etc.
Download Azure Active Directory Powershell Module
Rather than explain the entire script line-by-line, I’ll provide the interesting parts here with comments. DO NOT copy/paste/run the code below. It is not complete. Use the download link at the bottom of this post to get a copy of the full script.
I turned this into a function with full help and verbose output. I always like watching the blue verbose scroll as PowerShell runs. You get that sense of satisfaction that everything in the world is good when you watch your own code perform. #nerdthrills
Microsoft Azure Active Directory Module
Download
Microsoft Active Directory Powershell Mod…
You can find the code here on the TechNet Script Gallery. Enjoy!