ntfs Posted November 19, 2004 Posted November 19, 2004 Hi,Thanks for a great forum.I experience some difficulties when I try to mount a network drive. It seems to me that the networks isn't up and running when the commands are executed.. I use Windows PE, and here is my STARTNET.CMD:factory -winpecls@echo offnet use x: \\xxx\installx:cd I386format c: /ywinnt32 /unattend:unattend.txtexitSimple, but gets the job done.When running the script I get errormsg 1231: The network location cannot be reached. If I put a pause before the net use command it workes perfectly, but that misses the point of an unattended installation.Second, I want to use net use x: \\xxx\install /USER:user password which works like a charm when used after everything is loaded, but when I use in startnet.cmd it gives me a different errormsg, even with a pause.Ideas or solutions?- ntfs
Flashcore Posted November 19, 2004 Posted November 19, 2004 here is the file that i use that works fine@echo offTITLE CLOSE ME TO REBOOTSTART "Installing Components" /MIN OC2.batSTART /MIN taskmgrfactory -winpeipconfig /allnet use z: \\SYSEMNAME\SHARE /USER:SYSTEMNAME\USER-NAME /PERSISTENT:NO "PASSWORD HERE""x:\program files\Ghost8\ghost32.exe"
ribond Posted November 28, 2004 Posted November 28, 2004 1. The net could be failing for all sorts of reasons -- usually the retry will fix it though. Change your startnet to do something like:net use x: \\xxx\installif %errorlevel% NEQ 0 net use x: \\xxx\installIf you still experience failures you could make it loop until it succeedsfactory -winpecall NetConnect[rest of your script goes here]goto :EOF:NetConnectnet use x: \\xxx\installif %errorlevel% NEQ 0 goto NetConnectgoto :EOF2. WinPE runs in a weird user context -- make sure that when you net use to another system using local credentials that you tell it where to get 'em:Instead of this: net use x: \\xxx\install /USER:user password Do this: net use x: \\xxx\install /USER:XXX\user password
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now