DriveNotFound, when its clearly there...Set-Location failure
so have reproducable, yet inconsistent, error.
- i have open powershell prompt,
- have usb drives inserted (for example lets drive mapped g: drive),
- i remove drive
- ... overnight, including lock & unlocking machine ...
- try access drive (without plugging in) - expected drivenotfound error set-location
- then put usb drive in
- ...wait computer "register"/"auto-mount" it...(i.e. show in windows explorer)
- try set-location drive (i.e. type "g:")
i still drivenotfound error.
funny thing is, can see drive when run get-psdrive can run set-alias executable on drive...and run executable, can't change drive.
it seems happening during step #4 or cache isn't getting reset/updated.
thanks,
hi,
please first make sure see drive under computer, , open powershell set location.
or, please first run:
get-psdrive
make sure inserted drive read out.
then set-location.
regards,
yan li
if have feedback on our support, please click here
cataleya li
technet community support
Windows Server > Windows PowerShell

Comments
Post a Comment