Active Directory module and cmdlet missing upon patching

You are trying to execute your standard PowerShell commands such as Get-ADuser and getting errors ā€“ this is caused for me every month upon installation of monthly patches to Windows 10 machine. It seems that the updates remove every month the RSAT tools and as well the ActiveDirectory 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.