r/PowerShell • u/sundry_outlook • Apr 21 '26
PSDrive
Hi..
I have created a new PSDrive having name `S:`.
new-psdrive -name S -psprovider filesystem -root c:\users\username\dir
one running command `get-content` works fine, but `vim` is opening a blank file.
get-content S:\test.txt # works fine
vim S:\test.txt # opens a blank file
8
Upvotes
View all comments
Show parent comment
1
u/sundry_outlook Apr 21 '26
we get error when we use -persist as it is not for local location..I tried -scope global, but it did not help.