Exchange POSH script to retrieve password, OU path and naming convention
I'm trying to create a script that will create a new Exchange 2010 Mailbox from a CSV file. This part if pretty straightforward. The issue I'm having is that I have to create this script to work in multiple environments. Each environment has their own naming convention, default password and OU path. What's the best way to retrieve this dynamic information and put it in to a Import-CSV script?
August 22nd, 2012 2:16pm

Hi You could set a user input before starting the script. Then, save those input as a variable, and use them in during the script For example $DefaultPW = Read-Host "Enter your default password" $DefaultPW = $DefaultPW.Trim(); Hope it helps CheersZi Feng TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2012 4:19am

Hi You could set a user input before starting the script. Then, save those input as a variable, and use them in during the script For example $DefaultPW = Read-Host "Enter your default password" $DefaultPW = $DefaultPW.Trim(); Hope it helps CheersZi Feng TechNet Community Support
August 24th, 2012 4:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics