This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In versions 0.8.1 - 0.8.3 of Windows Azure PowerShell, the installer prepended the value %PSModulePath% to the System environment variable for PSModulePath. This would cause some user-specific PowerShell scripts to be removed from the default path and to no longer be discoverable by default. The attached script fixes the issue. When run from an elevated command prompt it will clean up the machine-wide PSModulePath variable and the PSModulePath in the current session. | |
This is wrtten as a script. You must have ExecutionPolicy set to RemoteSigned or Unrestricted to run this script. It must be run from an elevated command prompt. | |
To execute, simply save the script to a ps1 file, like 'FixEnvironment.ps1' and run the script from the command line | |
> .\FixEnvironment.ps1 | |
The script will prompt before making changes. You can control prompting using the standard parameters (e.g -Force) |