3
I am trying to map a network drive (the WD My Cloud HDD) to be used by a service (CrashPlan backup software) in Windows 8, something that I have achieved with this script:
net use X: \\WDMYCLOUD\MyShare /u:WORKGROUP\user password /persistent:yes
However, I need to keep the map after rebooting.
Following instructions from stackoverflow I know I have to run a scrip from the SYSTEM user.
I have read about using a startup or logon script (as proposedin that solution), or using the scheduled tasks tool as perfectly explained here.
However, the best I have achieved is to see the map, but when I try to enter the X:/ drive it says that the user or password is incorrect.
What is more surprising, if I access the network drive, using the same username and password used for the script, then I can access X:, the mapping starts working.
What is wrong? Could it be that the drive is mounted for the SYSTEM account but nor for my Windows Account?
Some of the questions:
- Should I use the startup/logon script or the scheduled tasks?
- What is the problem with my password?
- Should I use "WORKGROUP" or my computer's name as the domain? Or no domain is needed?
- What about SysinternalsSuite by Mark Russinovich, which is mentioned as a first step in stackoverflow? Is it really needed if I am going to reboout the computer?
- Is creating a process as explaiend here a better solution?
Thanks a lot!
"Put this command into, for example, DriveCheck.cmd" - what does it mean? – user1314836 – 2014-11-04T15:03:05.907
Create a file called
DriveCheck.cmd
and copy that line into it. I can't see what else it could mean. – AFH – 2014-11-04T16:41:00.797Ok, I didn't know the cmd file extension, sorry for that. Why is it that you need to execute that command? What is the difference between "net use" command and the "map network drive" option in Windows? – user1314836 – 2014-11-04T17:29:26.693
1I don't think there is one, but I thought I should mention that I set up my share differently. The command makes sure that the network share is accessed from explorer after a reboot before other programs try to use it. I have no idea why this is necessary, but I have found that it is. – AFH – 2014-11-04T18:42:45.043