$audit_csv = import-csv ".\us31a hex audit_dtc - copy.csv"
foreach ($audit_obj in $audit_csv) #<==
{
$field = $audit_obj.upn
Disable-Mailbox $field
}
Regards
Göran Johansson
Sent from my iPhone
> 16 dec 2013 kl. 23:55 skrev "Daniel Chenault" <[email protected]>:
>
> $audit_csv = import-csv ".\us31a hex audit_dtc - copy.csv"
> foreach ($audit_obj in $audit_csv
> {
> $field = $audit_obj.upn
> Disable-Mailbox $field
> }
================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1