By: Mike Pfeiffer
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...
View ArticleBy: Geoff Hall
Thanks a bunch! This saved me some work. This is WAY cleaner than my spreadsheet. I was using a spreadsheet to generate the PS commands, then copy/pasted to powershell. Needless to say one wrong...
View ArticleBy: Mike Pfeiffer
Add a parameter for ResetPasswordOnNextLogon and assign $true for the value. For example: [Parameter(Mandatory=$false, ValueFromPipelineByPropertyName=$true)] [bool] ResetPasswordOnNextLogon
View ArticleBy: Benny
Thanks Mike this is real time saver. How could I modify your script to flag for a password change on next logon? Thanks.
View ArticleBy: James Watson
Thanks Mike! One observation. In my (admittedly rushed) experience, if I wanted to leave out the $Database parameter I had to change: ValueFromPipelineByPropertyName=$true to false even though it was...
View ArticleBy: Create exchange mailboxes from csv
[...] 1. See this – Provision Exchange Mailboxes from CSV using PowerShell Advanced Functions Reply With Quote [...]
View ArticleBy: Claudio Galletti
Hello Mike, nice idea. You can simplify the code by just using: $PSBoundParameters["Password"] = ConvertTo-SecureString -AsPlainText $Password -Force Instead using the foreach and removing/readding the...
View Article