Hi,
I have a CSV file populated with a list of users SPN's in the following format:
User
user1@domain.local
user2@domain.local
I am getting an odd error when I run the following:
$users = c:\scripts\userlist.csv
foreach ($user in $users) {Set-Mailbox $user -UseDatabaseQuotaDefaults $false -ProhibitSendReceiveQuota
1 -IssueWarningQuota 1 -ProhibitSendQuota 1 -hiddenfromaddresslistsenabled $true}
Parameter".
When I do a foreach ($user in $users) {write-host $user} I get the contents of the CSV but with "@{user=" prepended to every entry.
What am I doing wrong? Any help much appreciated.


