question

VinodSurvase-1595 avatar image
0 Votes"
VinodSurvase-1595 asked ClementBETACORNE answered

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

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

windows-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ClementBETACORNE avatar image
1 Vote"
ClementBETACORNE answered

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,

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.