Powershell - Updating Notes field to multiple groups

Can anyone assit me in updating the Notes field to multiple grups in Active Directory ?
Groups are in different OUs .

Since its multiple groups , Ideally I would like to enter the group names in to a text file.
LVL 2
MilesLoganAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SubsunCommented:
Do you mean updating the description field?
0
MilesLoganAuthor Commented:
no .. the Notes field at the bottom in the General tab
0
SubsunCommented:
GC C:\group.txt | % {Set-ADGroup $_ -replace @{info="EE Rocks!!"}}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Webinar: What were the top threats in Q2 2018?

Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that describes and analyzes the top threat trends impacting companies around the world. Are you ready to learn more about the top threats of Q2 2018? Register for our Sept. 26th webinar to learn more!

MilesLoganAuthor Commented:
that works great ! Any way to add new data and keep the old data there ?
0
SubsunCommented:
Try..
GC C:\group.txt | % {
$info = "EE Rocks!!"+" - "+$((Get-ADGroup $_ -Properties Info).Info)
Set-ADGroup $_ -replace @{info=$info}
}

Open in new window

0
MilesLoganAuthor Commented:
@{info="SubSun Rocks!!"}}
0
SubsunCommented:
:-)
0
sirbountyCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.