December 21, 200421 yr 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
December 21, 200421 yr 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.
December 21, 200421 yr Author 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?
December 21, 200421 yr 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
June 26, 200620 yr NET USE <drive letter>: \\<computername>\<sharename>nice.. a where insert in password?
June 26, 200620 yr 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
June 26, 200620 yr 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
January 6, 200719 yr 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!
Create an account or sign in to comment