Awesome -thanks Michael.
-Malcolm
From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Monday, September 20, 2010 17:06
To: NT System Admin Issues
Subject: RE: PowerShell - pipeline input help
Close.
get-aduser -filter * -searchbase OU=Test,OU=User
Accounts
Close.
get-aduser -filter * -searchbase OU=Test,OU=User
Accounts,DC=fabrikam,DC=com |% { add-adgroupmember groupname $_.samaccountname
}
...will do what you want.
Regards,
Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com
From: Malcolm Reitz