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:
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:
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.).
You can discover a DC with ADWS function in your area utilizing the command:
Get-ADDomainController -Discover -Service “ADWS”
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.