Category Archives: csvde

How to extract the user who has the option Password never expires in the OU

To extract all the users in the OU with the Password never expires details, we can user Dsquery or CSVDE commands Use the blow command to find and export users with   Password never expires in Active Directory Dsquery command dsquery user “OU=Test,DC=test,DC=com” -limit 0 | dsget user -pwdneverexpires >c:tempUsers.txt dsquery user “OU=Test,DC=test,DC=com” –o rdn -limit… Read More »

Command to find the number of Sitelink’s for the corresponding site

Command to find the number of Sitelink’s for the corresponding site csvde -f C:Tempsite.csv -d “CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=test,DC=com” -r “(CN=*site2*)” -l “cn” In the above command you will get the output in site.csv file, it contains all the Sitelinks and it’s corresponding DN Eg: Output DN,cn“CN=site1/site2,CN=IP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=test,DC=com”, site1/site2 In this site2 – Site Namesite1/site2 – Sitelink… Read More »