Also, you need to supply the username/password of the account that is on the same computer as the share, thus
Code:

$comp='workstation'
$user='username'
$pass='wassword'
use u: '\\'+$comp+'\c$$' /user:+$comp+'\'+$user /pass:$password

_________________________
There are two types of vessels, submarines and targets.