Jump to content

Windows PE NET problems


ntfs

Recommended Posts

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

Link to comment
Share on other sites


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"

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...