It looks like it's not happy about $_.displayName
Does Import-Csv groupstest.csv | ForEach { $_.displayName} give you a list of the display names in your csv file? ________________________________ From: Ehren Benson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 2:04 PM To: MS-Exchange Admin Issues Subject: errant powershell command This is curious because it seems logical enough that it should work. I use a similar command all the time to create new contacts and distribution groups but maybe it cannot be used to modify properties... I need to 'uncheck' all of the Require All Senders to be authenticated boxes on all the distribution groups and I don't want to do this by hand for 200 groups. So I exported the group list to a csv and cleared out everything but the display names in excel and re-saved it as a csv. Then I tried using Import-Csv groupstest.csv | ForEach { Set-DistributionGroup -identity $_.displayName -RequireSenderAuthenticationEnabled $False } However it returns: Set-DistributionGroup : Cannot bind argument to parameter 'Identity' because it is null. At line:1 char:70 + Import-Csv groupstest.csv | ForEach { Set-DistributionGroup -identity <<<< $ _.displayName -RequireSenderAuthenticationEnabled $False } Set-DistributionGroup : Cannot bind argument to parameter 'Identity' because it is null. At line:1 char:70 + Import-Csv groupstest.csv | ForEach { Set-DistributionGroup -identity <<<< $ _.displayName -RequireSenderAuthenticationEnabled $False } Anyone have any clues as to why this might not work or what I can do to achieve what I want? Thanks Ehren J. Benson, MCSE Windows Systems Administrator Department of Physics and Astronomy Michigan State University 1209 A Biomed Phys Sci [EMAIL PROTECTED] 517-884-5469 Ehren J. Benson, MCSE Windows Systems Administrator Department of Physics and Astronomy Michigan State University 1209 A Biomed Phys Sci [EMAIL PROTECTED] 517-884-5469 ************************************************************************************************** Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. ************************************************************************************************** ~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~ ~ http://www.sunbeltsoftware.com/Ninja ~