Sorry if this is the wrong area cant find where it may go.i have many AD groups and have been asked what folders they apply to huuuuge job
to help I have a command that will tell me some details of the AD groups so I know what they was created and last used.
I want to push this out to an excel file but I can t make it work I never use PS please help.
here is what I am using the command to pull the details form AD works great it is jus the pushing to to excel that's the issue:
PS C:\Windows> Get-ADGroup -filter {ObjectClass -eq "group"} -Properties * -searchbase "OU=EU,DC=main,DC=intgin,DC=net"
| FT name, whencreated, GroupCategory, whenchanged ¦ Get-Process | Export-Csv c:\ADGroupDetails.txt