Avatar of MilesLogan
MilesLoganFlag for United States of America

asked on 

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.
PowershellActive DirectoryWindows Server 2003

Avatar of undefined
Last Comment
sirbounty
Avatar of SubSun
SubSun
Flag of India image

Do you mean updating the description field?
Avatar of MilesLogan
MilesLogan
Flag of United States of America image

ASKER

no .. the Notes field at the bottom in the General tab
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of MilesLogan
MilesLogan
Flag of United States of America image

ASKER

that works great ! Any way to add new data and keep the old data there ?
Avatar of SubSun
SubSun
Flag of India image

Try..
GC C:\group.txt | % {
$info = "EE Rocks!!"+" - "+$((Get-ADGroup $_ -Properties Info).Info)
Set-ADGroup $_ -replace @{info=$info}
}

Open in new window

Avatar of MilesLogan
MilesLogan
Flag of United States of America image

ASKER

@{info="SubSun Rocks!!"}}
Avatar of SubSun
SubSun
Flag of India image

:-)
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo