DriveNotFound, when its clearly there...Set-Location failure


so have reproducable, yet inconsistent, error.

  1. i have open powershell prompt,
  2. have usb drives inserted (for example lets drive mapped g: drive),
  3. i remove drive
  4. ... overnight, including lock & unlocking machine ... 
  5. try access drive (without plugging in) - expected drivenotfound error set-location
  6. then put usb drive in
  7. ...wait computer "register"/"auto-mount" it...(i.e. show in windows explorer)
  8. 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

Popular posts from this blog

DCOM received error "2147746132" from...

DFSR RPC replication errors 5014 1726 with large files over VPN

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B