RE: PowerShell - pipeline input help

2010-09-21 Thread Malcolm Reitz
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

RE: PowerShell - pipeline input help

2010-09-20 Thread Michael B. Smith
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