June 25, 200719 yr Author Solutionone -> I did the code for the disk id, it's a bit tricky, because I have to get that information on a different wmi query. Bluesol -> Are you running the script from the WinPe X:\Windows\System32 or fromt the network share. If you are running from the share you should check from the shareserver that the file is allowed by windows.I suggest everyone still using old versions to download the newest 0.32 Edited June 25, 200719 yr by geezery
June 29, 200719 yr Author Are you trying it on a Virtual environment or real. I think that this script needs at least 512mb ram.
June 29, 200719 yr Just booted to a Box with 4GB of RAM and got the same issue. What size are you making your RAM disk? Edited June 29, 200719 yr by FredBeagle
June 29, 200719 yr I am having a problem that I hope someone has already had and fixed it.I am getting a syntax error on line 46 and on line 366. When I click yes the script continues but i get no drive information or WIM information. If i run imagex.hta from my Vista box I get no errors.I have made a PE CD, installed the 4 applications, copied the files to mount\windows\system32, and updated the startnet.cmd to map drives.Any help would be great.
July 3, 200719 yr try installing the WMI package into your PE.command from memory after you have mounted your *.wim file ispeimg /install=*WMI* c:\%winpe%\mount\windows%winpe% < where you have your files.hope that helps Edited July 3, 200719 yr by cirion9999
July 4, 200719 yr Yes!!! That worked. Geezery. Can you update your first post to include the WMI install.
July 8, 200719 yr Author I think I have included all the necessary packages in the first post. I think wmi comes if you install scripting support, or am I wrong?- I have been on holiday and haven't been able to develope this project for three weeks.- Is there any wishes or functions you guys could need.Someone suggested to make a function to map network drives based on the subnet. Would it be nice?
July 9, 200719 yr I think I have included all the necessary packages in the first post. I think wmi comes if you install scripting support, or am I wrong?- I have been on holiday and haven't been able to develope this project for three weeks.- Is there any wishes or functions you guys could need.Someone suggested to make a function to map network drives based on the subnet. Would it be nice?Yeah WMI has to be installed as well as scripting support, if you have a script that does not call any WMI functions (info) then you will be fine else you do need to have the WMI package installed.the mapping of network shares via ip would be awesome it would allow you to connect into your deployment points very easly.
July 10, 200719 yr Hello.I test the script and i have the following error.After the applying is done and i reboot the machine winload.exe is missing or is corrupted.i know that this is a common error with vista but how can i fix it?i can repair it using the original vista dvd but i want to know how to eliminate this error.Thanks
July 10, 200719 yr Author Have you tried to run "bootsect /nt60 c: /f" from the winpe after applying?I have only used this script on Windows XP machines, so I don't know about those Vista weirdnesses.You have to also put that bootsect.exe to your winpe 2 boot.wim.I can also give you the code needed to automate this, if it works. Edited July 10, 200719 yr by geezery
July 16, 200719 yr Author I started to make the subnet based network mapper function to the HTA and I have already written the first script. I need some "beta" testers so I can find the problems that might occure. If some of you guys could test this script in real environment and give some feedback for me. There is some modifications you need to be done before testing. You have to put correct UNC-paths and Username/Password witch are able to map share from your server. You have to also change the correct subnets to Select case statement i.e. 192.168.1 etc. You can add multiple records there just follow the sample that is commented out. Here is the script. Just Copy Paste it to notepad and rename it to netmap.vbs and save. You can also test it on Vista based OS, but testing in XP is not possible, since I removed those checkings from the script, since this is going to be run from the WinPE 2.0. You can ask for more advice if needed.I'm waiting for Feedback 'netmap.vbs by GeezeryConst TemporaryFolder = 2Const ForAppending = 8Dim ObjShell : Set ObjShell = CreateObject("WScript.Shell")Dim Objfso : Set Objfso = CreateObject("Scripting.FileSystemObject")Dim TmpFile : TmpFile = Objfso.GetSpecialFolder(2) & "/ip.txt"Dim ThisLine, IPSet WSHNetwork = CreateObject("Wscript.Network")ObjShell.run "%comspec% /c ipconfig > " & TmpFile, 0, True With Objfso.GetFile(TmpFile).OpenAsTextStream Do While NOT .AtEndOfStream ThisLine = .ReadLine 'For WinPe v.2.0 Vista Based If InStr(ThisLine, "IPv4") <> 0 Then IP = Mid(ThisLine, InStr(ThisLine, ":") + 2) Loop .Close End With'Removes the dummy character from the end.If IP <> "" Then If Asc(Right(IP, 1)) = 13 Then IP = Left(IP, Len(IP) - 1)End IfDim Array, SubnetArray = Split(IP, ".", -1, 1)If Array(2) = "" ThenMsgBox("There is some problems with the network settings!")End IfSubnet = Array(0) & "." & Array(1) & "." & Array(2)Set Objfso = NothingDim StrUserName, strPassword'Username that have rights to shares. Change theselinesstrUserName = "Admin"strPassword = "AdminPassword"'Here comes the Select Case portion Select Case SubnetCase "10.13.58"WSHNetwork.MapNetworkDrive "j:", "\\Server01\Distribution" ,False, strUsername, strPassword'Case "10.13.57"'WSHNetwork.MapNetworkDrive "y:", "\\Server02\Distribution" ,False, strUsername, strPasswordEnd Select Edited July 16, 200719 yr by geezery
July 17, 200719 yr I re downloaded WAIK and set my batch file to install WMI, now all works, I have made some changes and such to work a little easier for the ppl using it where I work. Thanks for the help guys.geezery, nice work, this is similar to a project I had begun at my previous employer, when I have my changes comlpete I will email them to you.
July 17, 200719 yr The interface is great, it's easy to use and I appreciate thatThanks for a great programDo you plan on allowing capture/append of folders at some point?Also Mount/unmountThanks
Create an account or sign in to comment