How to export AD on prem all groups and computers via powershell along with their attributes?

Vinod Survase 4,781 Reputation points
2021-11-09T10:36:23.597+00:00

How to export AD on prem all groups and computers via PowerShell along with their attributes?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

Accepted answer
  1. Clément BETACORNE 2,496 Reputation points
    2021-11-09T11:03:11.447+00:00

    Hello,

    You can try something like :

    Get-ADGroup -Filter * -property * | Export-csv -path groups.csv -delimiter ";" -notypeinformation
    Get-ADComputer -Filter * -property * | Export-csv -path computers.csv -delimiter ";" -notypeinformation
    

    You will need the Active Directory PowerShell module

    Best Regards,

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.