troubleshooting Question

Modifying description of multiple AD groups via powershell.

Avatar of Purti Bajaj
Purti Bajaj asked on
Active Directory
9 Comments2 Solutions70 ViewsLast Modified:

I am Purti Bajaj , and i need one script which update my description for multiple groups in active directory.

I am importing csv file but even though i m getting "object not found error".

Below are the sample of script which i m using.

$file = Import-Csv C:\temp\group1.csv
foreach ($line in $file){
    set-adgroup '$($line.Groupname)' -Description '$($line.Description)'

Kindly look into this and do the needful.

Thanks in Advance!!!!
Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros