Best location for "net use Z:" command

exelanz

Member
Hi all,

I am trying to build in a network drive mapping. I have tried post-setup machine and user sections to put the command. The command works perfectly from the command line and is like this "net use z: \\nas\shared_volume mypassword /user:myusername /persistent:yes"

However, cannot run it succesfully as part of the post-setup phase.

Is this the correct place in ntlite or should I use another method (e.g. put this in a script)?

Many thanks in advance.
 
This command should work from Post-Setup (Machine) or (User). To confirm, you're running:

CommandParameters
netuse z: \\nas\shared_volume mypassword /user:myusername /persistent:yes
 
Yes that is correct. For some reason it does not work. Neither machine nor user. Neither on a VM or physical machine.

Will investigate further.
 
Check the logs under \Windows\Panther\UnattendGC, see if your "net use" command gets called w/o error.
 
garlin I ran various tests. I am stuck with:
  1. When executed in the machine section, no errors, and z: is mounted but in unusable stale state.
  2. When executed in the user section, logs show me "command successfully executed", but when the GUI is available, the mount is not there
As said before, running the command manually works fine.

I am not sure where to go from here. Any ideas? Many thanks in advance.
 
Back
Top