MSFN Forum: Connect to network during audit phase ... - MSFN Forum

Jump to content



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

Connect to network during audit phase ... Doesnīt seem to work .. Rate Topic: -----

#1 User is offline   midiboy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 586
  • Joined: 04-July 04

Posted 11 November 2007 - 07:13 AM

Hi guys,

did a search for +audit +network but did not come up with any results so I guess noone has tried this before. I am trying to get the Vista installation to check if a share exists during audit phase and if it does, to install from network instead of DVD. However, it does not seem to work. The share exists and has read rights for the user "everyone", if I try the script from within Windows, it works but during audit user phase it always defaults to installation from DVD instead. The network drivers are installed already (they are slipstreamed into the image), the network cable is connected but the PC does not seem to get an IP during audit phase (checked ipconfig /all) during audit phase.

Hereīs the script:

@echo off
SETLOCAL ENABLEEXTENSIONS

if exist "\\server\share" goto servermode
ECHO Running Installation from DVD Drive ...

ping -n 5 127.0.0.1>nul
start "" /wait "%DVDRoot%\install.cmd"

exit

:servermode

PUSHD \\server\share
ECHO Running Installation from Server ...

ping -n 5 127.0.0.1>nul

FOR %%j IN (Z Y X W V U T S R Q P O N M L K J I H G F E D) DO IF EXIST "%%j:\Installation\install.cmd" set DRIVE=%%j

start "" /wait "%DRIVE%:\Installation\install.cmd"
POPD

exit



Do you guys have any ideas how to solve that problem ?

Thanks,
Alex

This post has been edited by midiboy: 11 November 2007 - 09:35 AM



#2 User is offline   midiboy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 586
  • Joined: 04-July 04

Posted 11 November 2007 - 09:34 AM

Hi guys,

a short update on this. I am now testing inside a VMWare machine with the vmware network drivers integrated into the Vista image so it has network working during audit phase.

I was wrong the first time. Windows does get an IP and I can ping the server. It seems to be a rights issue. If I open a cmd during audit phase and try to do this:

net use Z: \\server\share


I get asked for a username and password.

So for testing, I then added the user anonymous to the share and NTFS rights on the server and gave it read rights but "net use" still asks for a user/password.

How can I mount this drive without writing a user/password combination into the cmd on the disc ?? Any ideas ? It would be ok if the user/pw would be encrypted somehow but how can a password be encrypted for the net use command in a cmd ??

Thanks for your help !
Alex

This post has been edited by midiboy: 11 November 2007 - 09:36 AM


#3 User is offline   Atheros 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 01-June 04

Posted 14 November 2007 - 06:51 AM

this is to do with your network.

create a seperate account

i use:

net use n: \\server\share /user:USER PASSWORD

<EDIT> got a bit too far ahead of myself here, i'll read a bit more thouroughly next time </EDIT>

This post has been edited by Atheros: 14 November 2007 - 06:53 AM


#4 User is offline   midiboy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 586
  • Joined: 04-July 04

Posted 14 November 2007 - 11:03 AM

Hi Atheros,

thanks for replying. However I would like to avoid using net use because I would either have to add the passwort in cleartext into the cmd or I would get prompted for the password which interrupts the unattended installation.

I have seen that WSIM allows credentials to be added to a synchronous command. However, contrary to the password for the administrator which can also be set in the autounattend.xml, the password cannot be encoded and is also written in cleartext which I donīt want.

So what other way is there ? Any ideas ?

Thanks for your help,
Alex

#5 User is offline   Atheros 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 01-June 04

Posted 15 November 2007 - 09:42 AM

have you tried messing about with WMIC?

most of the commands in there are out of my league but it looks promising.

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