Last active
February 3, 2016 04:48
-
-
Save bcdady/6b0b997627197869d5de to your computer and use it in GitHub Desktop.
Mount drive letters for each Module Path
This file contains hidden or 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
$driveIndex = 1 | |
$env:PSModulePath -split ';' | Sort-Object | foreach { New-PSDrive -Name "PSMods$driveIndex" -PSProvider filesystem -Root $PSItem; $driveIndex++ } | |
Get-PSDrive -PSProvider FileSystem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment