Jump to content

Recommended Posts

Posted (edited)

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

Edited by midiboy

Posted (edited)

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

Edited by midiboy
Posted (edited)

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>

Edited by Atheros
Posted

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

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