alanrenouf/vCheck-vSphere — pull request #214 by smasterson (2014-06-08 20:28:58+00:00)
Title: Added Import/Export functions

Been meaning to do this for a while to ease the pain from moving from one version or copy of vCheck to the next.

There are four functions added to vCheckUtils.ps1 - two 'helper' functions and two major functions:
Export-vCheckSettings and Import-vCheckSettings.

Export-vCheckSettings will gather settings from GlobalVariables and all plugins and export the data to a CSV. By default, creates a file call vCheckSettings.csv in the vCheck folder.

Import-vCheckSettings will apply the settings to a vCheck instance from which it is run. Any new or changed settings will prompt the user for input.

Hopefully this will make it easier much easier for folks to move to a new version or duplicate their setup.

Keep in mind this will only move settings, not any custom changes that have been made to any plugins.

I was thinking of adding a plugin (or adding to vCheck.ps1) to automate the export so the settings are always easily available. Let me know your thoughts.