Skip to content

Instantly share code, notes, and snippets.

@bcdady bcdady/ModuleDrives.ps1
Last active Feb 3, 2016

Embed
What would you like to do?
Mount drive letters for each Module Path
$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
You can’t perform that action at this time.