Load all powershell-variables by command or in different ps1?

Hi,


I have this powershellscript which loads software into Microsoft SCCM so each time I add another software program, I need to select those variables, run them, then execute the other parts of the script I need.

Isn't there a easier way to load all variables at once or refresh them when I do a change in these variables? F.e. have them in a seperate ps1 and call them via a command?

Please advise.

September 11th, 2015 5:35am

Save configuration information to a file.  This is a design issue that is likely a result of lack of experience with PS and scripting/software systems.

As posted there is really not enough information to be of much help.  What are the variables used for?  Why do they c

Free Windows Admin Tool Kit Click here and download it now
September 11th, 2015 8:06am

These might be helpful:

http://ss64.com/ps/export-clixml.html

http://ss64.com/ps/import-clixml.html

September 11th, 2015 10:41am

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

Other recent topics Other recent topics