A lot of my powershell work consists of creating things in bulk using PowerShell and csv files. Is it possible to pass a switch parameter in the csv file?
It would be great to be able to populate a csv file to create multiple resource mailboxes of mixed types (shared, room, equipment) and just run one simple script and pass the switch parameter via the file.
Yes I could create a script with a switch to read that value and then run the right script for that item, but I am all about the least amount of duplication that is possible.
I added the script. If you notice the identifier -room it’s a switch parameter, not a value for a parameter and you don’t show in your answer how the script is seeing that in the csv file to process the new-mailbox command properly.