Mr.John_Doe Posted August 28, 2007 Share Posted August 28, 2007 Hello,we want to use imagex with winpe2.0 for deployment of our Windows XP. So I search a solution for the following steps:1. Ask the dns for the own pc-name (nslookup ip-adress)2. connect to \\server\folder\pc-name as z:3. start the deploymentscript in this folderdeploymentscript:1. partedit using z:\part.cfg2. running batchfile z:\use_imagex.bat (imagex.exe /apply ...)3. make c: bootable4. write in c:\sysprep\sysprep.inf the pc-name (nslookup or maybe input by user)5. append the runonce-scripts from z:\runaftersetup.cfg to sysprep.inf6. rebootI think this hard to script with batch-files so I want to use some vbscript. But how can I use an existing vbscript with winpe2.0?Can someone tell me this? When I'm done I can show the code here... Link to comment Share on other sites More sharing options...
bj-kaiser Posted August 28, 2007 Share Posted August 28, 2007 you need to install the scripting component with peimg.exe.peimg.exe /install=WinPE-Scripting-Package C:\your_pe_mountpoint Link to comment Share on other sites More sharing options...
Mr.John_Doe Posted August 28, 2007 Author Share Posted August 28, 2007 Thanks for your help. It works now...Now I began to script the whole thing.The Networkmapping works. But how I can make output to the shell. With wscript.echo he opens me a messagebox with the text... Link to comment Share on other sites More sharing options...
geezery Posted August 28, 2007 Share Posted August 28, 2007 http://www.msfn.org/board/index.php?showto...0&start=220In the hta I have plenty of examples for you, that are actually pure vbscript. Theres soon going to be big update also to the script. Link to comment Share on other sites More sharing options...
zorphnog Posted August 28, 2007 Share Posted August 28, 2007 (edited) Thanks for your help. It works now...Now I began to script the whole thing.The Networkmapping works. But how I can make output to the shell. With wscript.echo he opens me a messagebox with the text...Execute your script with cscript.exe instead of wscript.exe (default). Example: cscript myscript.vbs Edited August 28, 2007 by zorphnog Link to comment Share on other sites More sharing options...
Mr.John_Doe Posted August 28, 2007 Author Share Posted August 28, 2007 Thanks for your hints.Your script looks very interesting. For now we search a way to bring out the images without any interaction. But after that I will search some kind of graphical interface for us. And it looks great at your script...But now I have another problem. When I want the make an .wim file withimagex /capture c:\ z:\test.wim "Drive C"after 1% he brings me an error like "file not found"...Z: is an mapped network drive.Unfortunatly I couldn't see which file is missing. I have tried to make a .wim from a machine which is not syspreped yet. Could this be the error?Thanks alot Link to comment Share on other sites More sharing options...
zorphnog Posted August 28, 2007 Share Posted August 28, 2007 The .wim file is just a compressed collection of the files and file system structure. Whether its sysprepped or not does not matter. Have you checked the permissions on your network drive? Make sure you can write to it. If the problem persists, post a detailed description of the error. Link to comment Share on other sites More sharing options...
Mr.John_Doe Posted August 28, 2007 Author Share Posted August 28, 2007 I have checked the permission...I have just write some echo Hello >> test.txt and it works....What schoul I say. I map the drive with a vbscript as z: and then I start the imagex-process.Is it possible to look which file or which process makes this error? Link to comment Share on other sites More sharing options...
p4ntb0y Posted August 28, 2007 Share Posted August 28, 2007 Its nothing silly like your disk is in th raw state?Sometimes I forget to format my drive after diskpart and then do the the imagex /apply and get the error "file not found" Link to comment Share on other sites More sharing options...
Mr.John_Doe Posted August 28, 2007 Author Share Posted August 28, 2007 But I have the problem at the creation of a wim-file.Is there some quite-mode or such where I can see what he does at this time? Link to comment Share on other sites More sharing options...
IcemanND Posted August 29, 2007 Share Posted August 29, 2007 Could be you quotes are messed up.can you post the actual code for us to look at? Link to comment Share on other sites More sharing options...
Mr.John_Doe Posted August 29, 2007 Author Share Posted August 29, 2007 There was no code at the last try...I have installed an standard windows XP + some Software to an Notebook.Then I had created a winpe2-CD how descriped in the Tutorial here on the page.Then I booted from this disk an on prompt I insertet:net use z: \\server\targetimagex /capture C:\ Z:\test.wim "Drive C"after a short while he ends and give me only the error Error imaging drive [C:\] - the system couldn't find the pathSo I have tried to make an image from drive c: to the second partition:imagex /capture c:\ d:\test.wim "Drive C"The same error occures... Link to comment Share on other sites More sharing options...
IcemanND Posted August 29, 2007 Share Posted August 29, 2007 Can you do a directory listing of C:? does that work? What are the specs of the laptop you are trying to capture the image of?does test.wim already exist in either of those two locations? Link to comment Share on other sites More sharing options...
Mr.John_Doe Posted August 29, 2007 Author Share Posted August 29, 2007 (edited) I had tested some more.I now tried to backup the single folders.It seems that he have some problems imaging the folder c:\dokumente und einstellungen\administrator\lokale einstellungen\tempthe same in english:c:\documents and settings\administrator\local settings\tempUnforutnatly I couldn't see all the hidden folders so I couldn't check those.Edit: It is defintiltly this folder. I have created a seperate exclusion-file and now it works...I couldn't realy say that that is a critical error... Edited August 29, 2007 by Mr.John_Doe Link to comment Share on other sites More sharing options...
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