Powershell can not find drive even though it is available on system


i using powershell v3 map san storage server 2012 , partition, format volumes, bring them online, , copy data them. this works except when doesn’t...

sometimes, although drive visible in windows gui under computer management -> storage management, powershell script fails recognize drive there. generally, happens after have removed/deleted , re-added drive during single execution of script.

an attempt copy data drive fail following:

copy-item : cannot find drive. drive name 'g' not exist.

but, in gui, have no problem navigating same drive , writing it.

if have advice/suggestions on how collect more information determine cause or know way around issue, i’d appreciate it.
see number of people having similar issues network drives haven’t found hints on 1 yet.

thanks,

marshall


marshallonsrud

hello marshall,

it helpful if post script you're running.  without seeing how performing these tasks, difficult determine happening.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...