mjwigham Posted December 21, 2004 Share Posted December 21, 2004 I appologise if this has been covered, and if it has please point me in the right direction but i couldn't find it via searching.What I am trying to acheive is this:-1. Runs cmdlines.txt from the CD at T-13 or12 (not sure which)2. Which runs RunOnceEx.cmd from the CD3. Which Runs a VBscript to map a network drive4. Then the RunOnceEx.cmd runs another instance of RunOnceEx.cmd which is located on the newly mapped drive5. The RunOnceEx reg entries are set by the networked copy, and they install the required software to complete my unattended install, at next logon. The idea is I can have a CD that I never have to change, and I can alter the network version of the RunOnceEx.cmd to make any software changes.The problem is at stage 3. The VBscript doesn't appear to apply, even though it works perfectly from windows!!Has anyone succeeded in doing what I am describing, or have any knowledge on mapping network drives at this stage of the install procedure??Cheers for your helpMark Link to comment Share on other sites More sharing options...
Tsunami Posted December 21, 2004 Share Posted December 21, 2004 Isn't it easier to run this command from RunOnceEx.cmd:NET USE <drive letter>: \\<computername>\<sharename>I have no experience with mapping network drives in an unattended setup, so I don't know if it's even possible. Link to comment Share on other sites More sharing options...
mjwigham Posted December 21, 2004 Author Share Posted December 21, 2004 The reason for a script is because we have two domains, and two deploy locations(identical). The script detects which domain its in and maps the drive accordingly.Any ideas? Link to comment Share on other sites More sharing options...
durex Posted December 21, 2004 Share Posted December 21, 2004 Ive had issues with using vbscript during the runonceex stage... the cause of this, from what I understand, is that certain "components" of windows that are needed for vbscripts to run, still havent been loaded at the very beginning of the runonceex process...Ive found that if you give the system roughly 30-45 seconds before trying to run your vbscript it runs without issue. oh.. and dont use the sleep cmd or anything in a vbscript.. use a batch file or the sleep.exe on the unattended download section Link to comment Share on other sites More sharing options...
AnimaliX Posted June 26, 2006 Share Posted June 26, 2006 NET USE <drive letter>: \\<computername>\<sharename>nice.. a where insert in password? Link to comment Share on other sites More sharing options...
Sonic Posted June 26, 2006 Share Posted June 26, 2006 net use x: \\MachineX\SharedFolderX passwordYou can replace password by * to force to ask password during the mapping ...But with net use /? you have all settings. In unattended setup the /Persistent:no switch allow to not save the mapped drive on next reboot Link to comment Share on other sites More sharing options...
Wraith Posted June 26, 2006 Share Posted June 26, 2006 This hasn't been mentioned yet, but in case you (or anyone else) haven't seen it:Error Message "The Workstation Service Has Not Been Started" When Using Cmdlines.txthttp://support.microsoft.com/default.aspx?...b;EN-US;Q314543 Link to comment Share on other sites More sharing options...
AnimaliX Posted June 26, 2006 Share Posted June 26, 2006 and where is command for autoset map network drives? Link to comment Share on other sites More sharing options...
Methanoid Posted January 6, 2007 Share Posted January 6, 2007 OK I might be being dense here but how can I set up my Z drive to ALWAYS be mapped to \\Diskstation\Private ??If I do that I can have a CD install and call an install routine from my external NAS drive(s) and not have to rebuil disks every time I change the setup basics. Also makes testing changes easier and means the system can be pre-setup closer to its final state! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now