Exporting ActiveDirectory Module
To manage users and computers in your Active Directory from PowerShell, you need the ActiveDirectory module which comes as part of the free RSAT tools...
- Written By: ps1
- Last Updated: April 21, 2025
- 3 minutes read
To manage users and computers in your Active Directory from PowerShell, you need the ActiveDirectory module which comes as part of the free RSAT tools...
To manage users and computers in your Active Directory from PowerShell, you need the ActiveDirectory module which comes as part of the free RSAT tools from Microsoft.
Provided you are domain administrator and have remoting access to your domain controller, you can also export the ActiveDirectory module from your DC, and use it locally via implicit remoting.
Here is how you do this:
$DC = 'dc1' # rename, must be name of one of your domain controllers # create a session $s = New-PSSession -ComputerName dc1 # export the ActiveDirectory module from the server to a local module "ADStuff" Export-PSSession -Session $s -OutputModule ADStuff -Module ActiveDirectory -AllowClobber -Force # remove session Remove-PSSession $s
Contact our sales team to get a personalized demo of our database management software for SQL Server!