Deploy PowerShell Active Directory Module without Installing RSAT

In one of many earlier articles we confirmed the best way to use the cmdlet in a to save lots of  the present logged in consumer data to the properties of every AD laptop object. One of the commentators moderately famous that to do it, you would need to set up with on all consumer computer systems which may be time consuming. I made a decision to attempt to discover out whether or not you’ll be able to use the PowerShell ActiveDirectory Module cmdlets without putting in RSAT on consumer computer systems. And I did it!

Suppose, we’ve got a server operating Windows Server 2012 R2, on which RSAT and RSAT-AD-PowerShell module are put in. Our activity is to repeat the RSAT-AD-PowerShell recordsdata to a consumer workstation and import them with a purpose to run totally different AD module cmdlets. I intentionally use the pc operating (based mostly on 1809 construct) as a workstation to point out that earlier RSAT-AD-PowerShell variations are supported in newer OS variations.

First of all, let’s copy all AD module recordsdata from Windows Server 2012 R2 to Windows 10. Create a folder C:PSADPoSh and duplicate all of the contents of C:WindowsSystem32WindowsPowerShellv1.zeroModulesActiveDirectory to it.

Then copy the next recordsdata from C:WindowsWinSxS folder:

  • Microsoft.ActiveDirectory.Management.dll
  • Microsoft.ActiveDirectory.Management.assets.dll
You can discover these libraries by looking the WinSxS folder. In my instance, the complete paths in Windows Server 2012 R2 had been as follows:

"C:WindowsWinSxSamd64_microsoft.activedirectory.management_31bf3856advert364e35_6.three.9600.16503_none_09aa35cd49da6068Microsoft.ActiveDirectory.Management.dll"
"C:WindowsWinSxSamd64_microsoft.activedir..anagement.resources_31bf3856advert364e35_6.three.9600.16384_en-us_efefcf68718a71bcMicrosoft.ActiveDirectory.Management.assets.dll"

Microsoft.ActiveDirectory.Management.dll - copy active directory for powershell module files

Then copy the C:PSADPoSh folder (in my case, its measurement was about 1.3MB) to a Windows 10 laptop the place RSAT AD module for Windows PowerShell isn’t put in.

Let’s attempt to import the copied Active Directory module to the present PowerShell session:

Import-Module "C:PSADPoShMicrosoft.ActiveDirectory.Management.dll"
Import-Module "C:PSADPoShMicrosoft.ActiveDirectory.Management.assets.dll"

Import-Module Microsoft.ActiveDirectory.Management.dll

The module has been efficiently imported, and you should use any AD module cmdlet to handle and get data out of your AD area (e. g., , , , and so on.).

using get-aduser on windows 10 without installing rsat

If the error ‘Unable to contact the server. This could also be as a result of this server doesn’t exist, it’s presently down, or it doesn’t have the Active Directory Web Services operating‘ happens, make it possible for Active Directory Web Services (ADWS) on the closest area controller is operating and the TCP port 9389 isn’t blocked by firewall.

You can discover a DC with ADWS function in your area utilizing the command:

Get-ADDomainController -Discover -Service “ADWS”

Get-ADDomainController discover Active Directory Web Services role

You can verify the accessibility of the ADWS service utilizing the cmdlet:

Test-NetConnection DC01 -port 9389

To run the cmdlets towards the precise area controller, use the –Server parameter:

Get-ADUser jbrion –server dc01.woshub.com

You can use the PowerShell AD module cmdlets until you shut your PowerShell session. You can copy the AD module recordsdata to all area computer systems utilizing GPO.

Check Also

How to Use Native SSH Client in Windows 10?

The built-in SSH shopper appeared in Windows 10 and Windows Server 2019. Ssh.exe can be …

Leave a Reply

Your email address will not be published. Required fields are marked *