What about using something similar
? (see "$_.Driveletter -eq "C:"" portion). Mountsession parameter was unintentionally removed in version 8, and has been added back in Update 2. So, as long as, you're leveraging VB&R v8 Update 2, you should be ok with the proposed script. Thanks.