MSFN Forum: Windows PE NET problems - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Windows PE NET problems Rate Topic: -----

#1 User is offline   ntfs 

  • Group: Members
  • Posts: 1
  • Joined: 19-November 04

Posted 19 November 2004 - 03:21 AM

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 -winpe
cls
@echo off
net use x: \\xxx\install
x:
cd I386
format c: /y
winnt32 /unattend:unattend.txt
exit


Simple, 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


#2 User is offline   Flashcore 

  • Newbie
  • Group: Members
  • Posts: 30
  • Joined: 02-July 04

Posted 19 November 2004 - 07:09 AM

here is the file that i use that works fine

@echo off
TITLE  CLOSE ME TO REBOOT
START "Installing Components" /MIN OC2.bat
START /MIN taskmgr
factory -winpe
ipconfig /all
net use z: \\SYSEMNAME\SHARE /USER:SYSTEMNAME\USER-NAME /PERSISTENT:NO "PASSWORD HERE"
"x:\program files\Ghost8\ghost32.exe"


#3 User is offline   ribond 

  • pope of preinstall. wizard of winpe. bender of things.
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 18-October 04

Posted 27 November 2004 - 10:07 PM

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\install
if %errorlevel% NEQ 0 net use x: \\xxx\install

If you still experience failures you could make it loop until it succeeds


factory -winpe
call NetConnect
[rest of your script goes here]

goto :EOF
:NetConnect
net use x: \\xxx\install
if %errorlevel% NEQ 0 goto NetConnect
goto :EOF

2. 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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy