Thursday 6 June 2024

The term 'Get-ADUser' is not recognized as the name of a cmdlet

 The term 'Get-ADUser' is not recognized as the name of a cmdlet

 

 If the ActiveDirectory module is present add

import-module activedirectory

before your code.

To check if exist try:

get-module -listavailable

ActiveDirectory module is default present in windows server 2008 R2, install it in this way:

Import-Module ServerManager
Add-WindowsFeature RSAT-AD-PowerShell

For have it to work you need at least one DC in the domain as windows 2008 R2 and have Active Directory Web Services (ADWS) installed on it.

For Windows Server 2008 read here how to install it

No comments:

Post a Comment

Note: only a member of this blog may post a comment.