Answer the question
In order to leave comments, you need to log in
How to make PowerShell see a reconnected flash drive?
If you pull out and insert the flash drive (H:\ drive) back, PowerShell stops seeing it
. Test-Path 'H:\' returns False.
Get-PSDrive -PSProvider FileSystem sees
the PS version 2 flash drive.
Answer the question
In order to leave comments, you need to log in
in 5.1.17134.48 on Win10 1803 there is no such problem.
inserted flash drive:
PS C:\Users\user> test-path g:
True
pulled out flash drive:
PS C:\Users\user> test-path g:
False
inserted flash drive
PS C:\Users\user> test-path g:
True
can you update the powershell?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question