Powershell variable to file for use in other scripts
Posted on 2010-08-13
I have a number of script which all use the same variables:
$Companyname = Read-Host "Enter the companyname this will be used for the ou creation: ouCompanyname"
Now i want to be able to give this variable one time and then use it in the series of scripts which the user has to execute.
The problem is that the computer needs to be rebooted after a script..
So what is the best approach for this?