Solved

Net use

trying to create a directory on a remote machine - in a workgroup

net use \\192.16.0.148\c$ password:12345zyx/user:username

if exist \\192.16.0.148\c$\misc goto done
echo "make directory"
md \\192.16.0.148\c$\misc <-- error here
done:echo "done"

the result is an error message - 'access denied' and it occurs at the md \\192.16.0.148 command
i placed the password and user name on the line and that generated an error

any ideas
4 answers Last reply Best Answer
More about tomshardware
  1. Users not allowed to create directories under those rights.
    You need to access as administrator. Thus 'access denied'.
    Either that or PC not accepting Remote Administration.
  2. thanks for reply, here is the solution i found and makes no sense to me, but it runs

    net use \\172.25.0.18\c$ /user:administrator password
    if exist \\172.125.0.18\c$\misc goto done
    echo "make directory"
    md \\172.25.0.18\c$\misc
    :done
    echo "done"
  3. Best answer
    The user needs to come before the password in the net use line. Plus not having admin rights to the machine would cause this. To even get to the hidden c$ share you need to use a local admin account.
  4. Best answer selected by tomold.
Ask a new question

Read More

Error Message Windows XP