A set of PowerShell scripts to backup and restore environment settings (configuration files, registry).
After installing, excecute the following powershell commands:
- Env-Conf-Backup
- Env-Conf-Restore
-
Verify you have PowerShell 2.0 or better with $PSVersionTable.PSVersion
-
Verify execution of scripts is allowed with
Get-ExecutionPolicy
(should beRemoteSigned
orUnrestricted
). If scripts are not enabled, run PowerShell as Administrator and callSet-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm
. -
Clone the env-config-scripts repository to your local machine.
-
From the env-config-scripts repository directory, run
.\install.ps1
- create/modify profile
env-conf_profile.ps1
at powershell$profile\env-conf
folder eg:
- Windows 8.1
C:\Users\<username>\Documents\WindowsPowerShell\env-conf\env-conf_profile.ps1
- Add/replace the variable
$env_conf_backupPath
with your preferred backup place eg:
$env_conf_backupPath = "C:\Users\<username>\Repos\Environment.Settings\"
$env_conf_backupPath = "C:\Users\<username>\Skydrive\Environment.Settings\"
- add custom (global/user)
modules
to your setup. In your env-config-scripts repository on your local machine you'll find a foldersample-modules
. Copy needed 'modules' to the folderC:\Users\<username>\Documents\WindowsPowerShell\env-conf\env-conf\modules\
, or create your own 'module' extensions and send a pull request.
- powershell
- git
- mercurial
- nuget
- conemu
- jslint
- visualstudio
Feel free to send a pull request for additional configurations
- posh-git, https://github.com/dahlbyk/posh-git