Category: Active Directory

Powershell how to read a csv file

Here is how we can get information in a csv file format using Export-CSV command.…

Useful Powershell commands for Active Directory

> Get-ADComputer -SearchBase "OU=OU1,OU=OU2,OU=OU3,DC=domain,DC=com" -Filter * -Prop erties * | Select -Property Name,Enabled,LastLogonDate | Export-CSV…