Relative Content

Tag Archive for powershellvariables

Replace a variable in a script wiith a value in a text file

I have a powershell script that creates a shared mailbox and then assigns a user to it as well as send as permissions. The $UserName value will need to be replaced by a value in a text file. There can be 20 names in the text file (each line is a user).