Hello all!
What I need is to rebuild an existing infrastructure. Current DC is total damaged. So I need to raise new DC. I can access powershell but I'm stuck with the export. Unfortunately, I am pretty newbie with powershell. I tried to use Get-ADUser but I am not using the right filters.
Get-ADUser -SearchBase "OU=OUNAME,DC=DCNAME,DC=local" -filter * | ft name,distinguishedName s -autosize
With this I listed the users from the specific OU but only their name. I need their passwords, OU and everything needed to directly import them to the new AD. After the import the goal is to start working with them properly.
Any ideas?