AntiMalware Status

Active Directory module and cmdlet missing upon patching

You are trying to execute your standard [easyazon_link identifier=”B01NBI97UZ” locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link] commands such as Get-ADuser and getting errors – this is caused for me every month upon installation of monthly patches to [easyazon_link identifier=”B015HVU740″ locale=”US” tag=”wn0d5-20″] Windows 10 [/easyazon_link] machine. It seems that the updates remove every month the RSAT tools and as well the [easyazon_link identifier=”B06VYFQNH4″ locale=”US” tag=”wn0d5-20″] ActiveDirectory [/easyazon_link] module from the computer.

Usually you will notice this by getting these errors:

The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct
and try again.
    + CategoryInfo          : ObjectNotFound: (Get-ADUser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Once you see this error try import-module Active Directory

import-module ActiveDirectory

If it fails with similar error:

import-module: The Specified module 'ActiveDirectory' was not loaded because no valid module file was found in any
module directory.
At line: 1 char:1
+import-mpodule ActiveDirectory ....

You can check one more time with list of modules:

get-module -listavailable

If the module is not listed, definitely you will need to install/reinstall the RSAT tools for Windows 10 again on your machine and all will be back. This happened few times upon new monthly patches were applied to Windows 10 machine.

Leave a Reply