§ April 21, 2015 17:04 by
beefarino |
Just a quick note about something I uncovered in the WMF 5.0 preview. This one’s been frustrating me for a few weeks as I’ve prepped demos for the PowerShell Summit.
If you create a new PowerShell drive in your session that has a single-letter name, the drive will be forcibly removed unless it’s backed by the FileSystemProvider.
To see this in action, run the following script in PowerShell 5 preview:
new-psdrive z -psp filesystem -root 'c:\'
new-psdrive y -psp registry -root 'hkcu:\'
sleep -second 5
get-psdrive
You’ll notice that the FileSystemProvider z: drive sticks around, where the RegistryProvider y: drive disappears.
Now that I’ve figured out what’s happening, I feel better about pushing the new version of Simplex to the gallery!
4e518507-2405-4e31-b969-bea40fbf9b95|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04