midiboy Posted November 11, 2007 Posted November 11, 2007 (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 offSETLOCAL ENABLEEXTENSIONSif exist "\\server\share" goto servermodeECHO Running Installation from DVD Drive ...ping -n 5 127.0.0.1>nulstart "" /wait "%DVDRoot%\install.cmd"exit:servermodePUSHD \\server\shareECHO Running Installation from Server ...ping -n 5 127.0.0.1>nulFOR %%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=%%jstart "" /wait "%DRIVE%:\Installation\install.cmd"POPDexitDo you guys have any ideas how to solve that problem ?Thanks,Alex Edited November 11, 2007 by midiboy
midiboy Posted November 11, 2007 Author Posted November 11, 2007 (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\shareI 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 November 11, 2007 by midiboy
Atheros Posted November 14, 2007 Posted November 14, 2007 (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 November 14, 2007 by Atheros
midiboy Posted November 14, 2007 Author Posted November 14, 2007 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
Atheros Posted November 15, 2007 Posted November 15, 2007 have you tried messing about with WMIC? most of the commands in there are out of my league but it looks promising.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now