
edg21
Content Type
Profiles
Forums
Events
Posts posted by edg21
-
-
I do it all the time.
I pull a network image using PQIDeploy and slam it to the Hard Drive. I then mount that new volume using Disk Part to a useable Drive volume under PE (drive C:). After which I copy all my drivers to the new volume. Works like a charm.
The VB code alone to manage creating, deployng and mounting volumes is over 500 lines.
Mike... Call me if you need help on this.
Chris
I'll give it a try & post my results.
0 -
can you post your diskpart's configuration script?
Select Disk 0
Clean
Create Partition primary
Active
Assign Letter=c
exit0 -
Maybe use diskpart to assign it a drive letter? That might work.
Cheers
Tried using diskpart to set as active & assign drive letter... no good.. any other ideas?
0 -
I've used ghost32.exe to re-image a hdd form within WinPE no problem, what I would like to know is if there is a way for me to have access to this disk before a reboot?
0 -
I use a WinPE boot cd that runs the following:
net use u: \\bender\unattend
net start dmserver
net start dmadmin
diskpart /s u:\config\xp\vlk\diskpart.cfg
format c: /fs:NTFS /v:"" /Q /Y
u:\cabs\xp\vlk\i386\winnt32.exe /s:u:\cabs\xp\vlk\i386 /unattend:u:\config\xp\vlk\unattend.txt /syspart:C: /NOREBOOTNot sure if that's what you wanted, but I hope it helps
0 -
that option will remove all existing partitions.......i only want my c partition formated, not the others
I would suggest using BartPE or if you have access to it WinPE, you can do whatever you want to the hdd before running setup.
0 -
Once you have network support enabled, you can use this. Maps network drive, starts services needed by diskpart, partitions the hdd, formats the hdd, copies i386 folder from network to local hdd, then starts the install from the hdd.
net use u: \\bender\unattend
net start dmserver
net start dmadmin
diskpart /s diskpart.cfg
format c: /fs:NTFS /v:"" /Q /Y
xcopy u:\cabs\xp\vlk c:\i386 /E /I
c:\i386\winnt32.exe /s:c:\i386 /unattend:u:\config\xp\vlk\unattend.txt /syspart:C: /NOREBOOT0 -
I haven't finished changing the commands.txt files to RunOnceEx commands yet when ever I finish I'll post my results.
Looking forward to seeing it
I'm in the process of making the script use FTP or WGET to d/l the packages, I've also set it up to get it's variables from an ini file, I will post when done.
0 -
what I´m wondering is where I can keep the the answer file after it is changed through some interface. Obviusly it will not be kept on the CD, I can not see how to keep the file on the C drive as the whole disk is repartitioned and formatted in the unattended setup.
I think that I would use VBS to create this functionality, but I´m not getting the big picture yet.
KRON
You could have WinPE load a ramdrive:
http://www.wug-nordic.net/articles/winpe_ramdrive.htm
Then perhaps you could use something like this to alter the answer file:
http://www.experts-exchange.com/Operating_...Q_20828466.html
0 -
Instead of CD, use PUSHD to change to a directory, then POPD to return to your working folder.
PUSHD C:\Windows
...
POPDGood advice
0 -
If you don't want to install something, you can change the file extension of the package to .rar_ and it won't download it. If you use multiple cds for different pc types then you could change %PAK_DIR% to reflect different sets of packages.
set PAK_DIR=unattend_chipset1
set PAK_DIR=unattend_chipset2
0 -
I just us this to import multiple .reg files
for %%i in (%TWK_DIR%\*.reg) do REGEDIT /S %%i
0 -
1. Is it possible to make cleanup.cmd not open a msdos window?
You can use CMDOW to hide the dos prompt.
2. Can I also make PSKill.exe and Sleep.exe not open Msdos Windows?Call them from a batch file & use CMDOW again to hide the window.
0 -
I have a copy of my I386 folder under $OEM$\$1\. Is there a way to have setup use that I386 folder booting from DVD so after textmode there is no more need for the DVD?
You might want to consider using WinPE/BartPE.... with it you can:
1. Boot from cd
2. partition hdd
3. format hdd
4. copy i386 to hdd
5. copy whatever else to hdd
5. run winnt32.exe to start setup from hdd
It works great
0 -
Run this before using diskpart.
net start dmserver
net start dmadmin0 -
On a service pack 2 slipstream CD, is it necessary to keep this folder? I have NetFramework SP1 being called from RunOnceEx, and I don't use a tablet PC. It will save 25 MB, and I still need to hack 75 MB off. Dang small CD's and no DVD-burner available. I might just delete the lang folder in I386. I believe that is unneeded as well, so long as it stays in English install.
You can safely delete it.
Info from:
0 -
and when having more then 1 nw adapters? i have 3 adapters
hmmmm... something like this maybe? Haven't tested it so let me know if it works
@echo off
:NW_CHOOSE
ECHO.
ECHO 1. per DHCP
ECHO 2. Statische IP-Adresse
SET /P NW_CONF=[Do you want to use DHCP or specify a static IPs? (Select 1 or 2)]
IF /I "%NW_CONF%" == "1" GOTO NW_SET_DHCP
IF /I "%NW_CONF%" == "2" GOTO NW_INPUT
:NW_INPUT
ECHO Setup 1st Adapter:
SET /P STATIC_IP1=[IP:]
SET /P SUBNET1=[Subnet Mask:]
SET /P GATEWAY1=[Default Gateway:]
ECHO.
ECHO Setup 2nd Adapter:
SET /P STATIC_IP2=[IP:]
SET /P SUBNET2=[Subnet Mask:]
SET /P GATEWAY2=[Default Gateway:]
ECHO.
ECHO Setup 3rd Adapter:
SET /P STATIC_IP3=[IP:]
SET /P SUBNET3=[Subnet Mask:]
SET /P GATEWAY3=[Default Gateway:]
ECHO You specified:
ECHO Adapter 1 - IP: %STATIC_IP1% MASK: %SUBNET1% GW:%GATEWAY1%
ECHO Adapter 2 - IP: %STATIC_IP2% MASK: %SUBNET2% GW:%GATEWAY2%
ECHO Adapter 3 - IP: %STATIC_IP3% MASK: %SUBNET3% GW:%GATEWAY3%
:NW_CONFIRM
ECHO.
SET /P NW_CONF=[Is this correct? Y/N:]
IF /I "%NW_CONF%" == "Y" GOTO NW_SET_STATIC
IF /I "%NW_CONF%" == "N" GOTO NW_INPUT
GOTO NW_CONFIRM
:NW_SET_STATIC
netsh int ip add name="Local Area Connection" static %STATIC_IP1% %SUBNET1% %GATEWAY1% 1
netsh int ip add name="Local Area Connection 2" static %STATIC_IP2% %SUBNET2% %GATEWAY2% 1
netsh int ip add name="Local Area Connection 3" static %STATIC_IP3% %SUBNET3% %GATEWAY3% 1
GOTO END
:NW_SET_DHCP
netsh int ip set add "Local Area Connection" dhcp
netsh int ip set add "Local Area Connection 2" dhcp
netsh int ip set add "Local Area Connection 3" dhcp
GOTO END
:END0 -
Curious. Can the OPK build tools of PE SP1 reliably build a SP2 version, or should I wait for the official 1.5 release?
It built w/SP2 for me.... no problems sofar.
0 -
Does anyone know if WinPE 1.5 has been released yet(I have the SMS OSD FP beta, which is a customized verion of 1.5, but I was told by MS that if I wanted to enable WMI support, then I would have to get the OPK customizable version)? I know it is suppose to be in the SP2 OPK, and probably eventually in the Select CDs. I am really looking for the WMI support. Did anyone ever get WMI to work in the earlier versions of PE?
I'm curious about that myself...
0 -
550 /unattend: No such file or directory.
Did you setup the ftp server directories right? Either way I missed some commands (bin & prom) use the version I just put up & it should work fine.
0 -
i am creating a xp cd but i want to install the applications from cd , however when i use the defualt %systemdrive% it says it cant find the apps so i have to substitute this with my cd drive letter , how can i make it use the cd drive?
You should really try the search function.... you can find getcd.exe using the search function then call use this code to set %CDROM% to your cdrom drive letter.
FOR /F "tokens=*" %%a in ('getcd.exe') do set CDROM=%%a
0 -
DHCP works well, but how could i set interface, gateway when i ask for it?
I'm sure you read it but incase anyone else didn't
0 -
^^ This is very good, but i want to call this file on Runonce.cmd to set the Networksettings before running your ftp.cmd. The thing is that my friends also want to use this CD. His network is different, but to call your ftp.cmd he has to input his IP, Mask and Gateway. So i couldnt set these Options static. My idea was to have a prompt like in linux where he could insert his Networksettings. He also has no DHCP. We need this to have in the next step an internet connection to start your ftp.cmd file.
Somethin kinda like this?
:NW_CHOOSE
ECHO.
ECHO 1. Set static IP
ECHO 2. Use DHCP
SET /P NW_CONF=[Do you want to specify a static IP or use DHCP? (Select 1 or 2)]
IF /I "%NW_CONF%" == "1" GOTO NW_SET_DHCP
IF /I "%NW_CONF%" == "2" GOTO NW_INPUT
:NW_INPUT
SET /P STATIC_IP=[IP:]
SET /P SUBNET=[Subnet Mask:]
SET /P GATEWAY=[Default Gateway:]
ECHO.
ECHO You specified:
ECHO IP Address: %WEB_ADDY%
ECHO Subnet Mask: %WEB_ADDY%
ECHO Default Gateway: %WEB_ADDY%
:NW_CONFIRM
ECHO.
SET /P NW_CONF=[Is this correct? Y/N:]
IF /I "%NW_CONF%" == "Y" GOTO NW_SET
IF /I "%NW_CONF%" == "N" GOTO NW_INPUT
GOTO NW_CONFIRM
:NW_SET_STATIC
netsh int ip add name="Local Area Connection" static %STATIC_IP% %SUBNET% %GATEWAY% 1
GOTO END
:NW_SET_DHCP
netsh int ip set add "Local Area Connection" dhcp
GOTO END
:END0 -
Configure your PC for static IP then run this to dump your settings to a txt file.
netsh -c interface dump > c:\location.txt
Copy location.txt to your unattended cd & run this in your batch to set it static.
netsh -f c:\location.txt
Or you could use something like this:
set STATIC_IP=192.168.1.105
set SUBNET=255.255.255.0
set GATEWAY=192.168.1.1
netsh int ip add name="Local Area Connection" static %STATIC_IP% %SUBNET% %GATEWAY% 1Info from:
http://www.petri.co.il/configure_tcp_ip_from_cmd.htm
hope that helps....
0
How to use WinPe for Network Unattend Install?
in Windows PE
Posted
hmmmm... I changed mine around a bit, the following is from my os_install.cmd. I will post the entire thing when I'm done.
Variable Values:
Commands Used: