(Go to Start-> Search PowerShell -> Right Click on Windows PowerShell -> Click Run as Administrator option)
command: Set-ExecutionPolicy unrestricted –Force
command: Get-ExecutionPolicy
https://www.microsoft.com/en-us/download/details.aspx?id=54616
System requirements:
WMF 5.1 requires Microsoft .NET Framework 4.5 or above. You can install Microsoft .NET Framework 4.5 or above by following the instructions at Installing the .NET Framework.
Use a 64-bit version of Windows. Support for the 32-bit version the Microsoft Azure Active Directory Module for Windows PowerShell was discontinued in October, 2014.
Need to restart machine once “Windows Management Framework 5.1 “installation is completed.
Command: $PSVersionTable
Expected output:
Name Value
---- -----
PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Module name: ActiveDirectory
Use below command to check available modules via powershell(Open powershell with run as Administrator mode) :
command: Get-Module -ListAvailable -Name ActiveDirectory
Expected output:
Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 1.0.0.0 ActiveDirectory {Get-ADRootDSE, New-ADObject, Rename-ADObject, Move-ADObject...}
In normal Windows Desktop OS Active Directory module needs to be installed and setup. In case of Windows Server OS Active Directory module can be setup using Add features in Server Manger.
In the following sections we describe Active Directory module setup on both Windows Desktop OS and Windows Server OS
If Active Directory module is not already installed on Windows Desktop OS following are the steps for Active Directory module installation and setup.
You can use the following versions of Windows:
Note: Need to restart machine once RSAT is installed
Download locations for RSAT:
You must enable the tools that you want to use by using Control Panel. To do this, click Start, click Control Panel, click Programs and Features, and then click Turn Windows features on or off. (See the following figure.)
In the RSAT releases for Windows 10, Windows 8.1, and Windows 8, tools are again all enabled by default. You can open Turn Windows features on or off to disable tools that you don't want to use. In RSAT for Windows 10, Windows 8.1, and Windows 8, you access GUI-based tools on the Tools menu from within the Server Manager console.
To install Active Directory on Windows Vista and Windows 7, click on Remote Server Administration Tools, click on Role Administration Tools, check the AD DS and AD LDS Tools option and click on OK.
You can use the following versions of Windows:
Note: These steps are required once on your computer, not every time you connect.
If you have to install management tools on Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, or Windows Server 2012 R2 for specific roles or features that are running on remote servers, you don't have to install additional software. Start the Add Features Wizard in Windows Server 2008 or Windows Server 2008 R2 or the Add Roles and Features Wizard in Windows Server 2012 and later versions. Then, on the Select Features page, expand Remote Server Administration Tools, and then select the tools that you want to install. Complete the wizard to install your management tools. (See the following screen shot.)
Use below command to check available modules via powershell(Open powershell with run as Administrator mode) :
command: Get-Module -ListAvailable -Name ActiveDirectory
Expected output:
Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 1.0.0.0 ActiveDirectory {Get-ADRootDSE, New-ADObject, Rename-ADObject, Move-ADObject...} |