Quantcast
Channel: Comments on: Provision Exchange Mailboxes from CSV using PowerShell Advanced Functions
Viewing all articles
Browse latest Browse all 8

By: Mike Pfeiffer

$
0
0

1. You would modify the process block like so:

Process {
  $PSBoundParameters["Password"] = ConvertTo-SecureString -AsPlainText $Password -Force
  New-Mailbox @PSBoundParameters
}

2. Try this (untested but I think it should work):

Process {
  $PSBoundParameters["Password"] = ConvertTo-SecureString -AsPlainText $Password -Force
  $mb = New-Mailbox @PSBoundParameters
  set-user -identity $mb.alias -company “pretendco”
  write-output $mb
}

Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images