Jump to content

edg21

Member
  • Posts

    196
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by edg21

  1. Same s***. It goes on as usuall for few minutes then the setup just disapears leaving two folders at c:\. Is there a log file or something else i could do to find out whats wrong?

    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:

    UNATTEND_SHARE=\\bender\unattend
    NTFS=/fs:NTFS /v:"" /Q /Y
    DISKPART_CFG=u:\config\winxp\vlk\diskpart.cfg
    FORMAT_CFG=%NTFS%
    CAB_LOCATION=u:\cabs\xp\vlk\i386
    UA_FILE=u:\config\winxp\vlk\unattend.txt
    SETUP_COMMAND=winnt32.exe /s:%CAB_LOCATION% /unattend:%UA_FILE% /syspart:C: /tempdrive:C: /NOREBOOT

    Commands Used:

    net use u: %UNATTEND_SHARE%
    net start dmserver
    net start dmadmin
    diskpart /s %DISKPART_CFG%
    format c: %FORMAT_CFG%
    %CAB_LOCATION%\%SETUP_COMMAND%

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

  3. 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: /NOREBOOT

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

  5. 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 :)

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

    http://unattended.msfn.org/xp/space_saving_tips.htm

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

    @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

    :END

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

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

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

    :END

  11. 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% 1

    Info from:

    http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

    hope that helps....

×
×
  • Create New...