Jump to content

zedox

Member
  • Posts

    708
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Posts posted by zedox

  1. @echo off
    cmdow @ /HID

    SetLocal enableextensions
    SET CDROM=%~d0

    IF NOT DEFINED UserName FOR /F "tokens=3 delims=\" %%d IN ("%UserProfile%") DO SET UserName=%%d

    COPY /Y "%CDROM%\$OEM$\system32\cmdow.exe" "%systemroot%\system32\"
    DEL /F /Q "%systemroot%\Web\Wallpaper\*.jpg"
    DEL /F /Q "%systemroot%\system32\*.scr"

    DEL /F /Q "%AllUsersProfile%\Documents\My Music"
    DEL /F /Q "%AllUsersProfile%\Documents\My Pictures"
    RD /S /Q "%AllUsersProfile%\Documents\Recorded TV"
    DEL /F /Q "%AllUsersProfile%\Start Menu\Activate Windows.lnk"
    DEL /F /Q "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
    DEL /F /Q "%AllUsersProfile%\Start Menu\Windows Update.lnk"
    DEL /F /Q "%AllUsersProfile%\Start Menu\Programs\Accessories\System Tools\Activate Windows.lnk"

    RD /S /Q "%UserProfile%\Favorites\Links"
    DEL /F /Q "%UserProfile%\My Pictures\"
    DEL /F /Q "%UserProfile%\Start Menu\Programs\Remote Assistance.lnk"
    DEL /F /Q "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"
    DEL /F /Q "%UserProfile%\Start Menu\Programs\Accessories\Windows Explorer.lnk"

    DEL /F /Q "%UserProfile%\Start Menu\Programs\Outlook Express.lnk"
    DEL /F /Q "%UserProfile%\Start Menu\Programs\Accessories\Address Book.lnk"

    EndLocal
    EXIT

    The last "DEL" commands are meant to remove the outlook express and address book shortcuts.

    But doesnt seem to work.

    The shortcuts only appear in the Administrators account. So what is the environment variable for the administrators account?

  2. Problem 1

    Hi guys, can I have some assistance with my unattended install please...

    [GuiUnattended]
    AutoLogon = Yes
    EncryptedAdminPassword = No
    AdminPassword = "******"
    TimeZone = 085
    OEMSkipRegional = 1
    OemSkipWelcome = 1

    Ok, the problem is I get the message...

    The system could not log you on. Make sure your User name and domain are correct, then type your password again. Leters in passwords must be typed using the correct case.

    I used nLite to change the Administrators name to a different name... and the auto logon automatically selects the username as Administrator.

    ---------------------------------------------------------------------------------------------------------------------------

    Problem 2

    not sure if this problem comes under Windows Media Center Edition forum or Unattended...

    Get the following error when executing Media Center...

    This Application has failed to start because dbgeng.dll was not found. re-installing the application may fix this problem.

    After clicking OK i get the next error...

    Application has generated an exception that could not be handled.

    Process id=01dc (476), Thread id=0x1e8 (488).

    Click OK to terminate the application.
    Click CANCEL to debug the application.

    If I Click OK I get the first error message again!!!

    I've searched the hard drive for dbgeng.dll and the file can not be found...

    How can I get my windows setup to copy this file over as it should do?

  3. I think i've cracked it.

    I created 2 directorys to be copied to C:\ during unattended setup.

    Then at the end of the 1st runonceex it will copy another runonceex from one of the directories that will execute a silent install of office 2000 disc1 upon a restart, included in that runonceex is the code to restart the machine.

    After the restart it will install office 2000 disc1 silently, then copy the other runonceex from the other directory, which includes the code to run disc 2 setup silently, and restarts the machine.

    Then once its restarted again, Office installation disc 2 runs and restarts the machine for a 3rd and final time.

    Woop... now lets see if it works.

    REG ADD %KEY%\055 /VE /D "Norton Antivirus" /f

    REG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\nav\NAVSETUP.EXE /QB" /f

    REG ADD %KEY%\055 /V 2 /D "taskkill /F /IM CfgWiz.exe /QB" /f

    I used

    start /wait C:\Install\symantec\NAVCE.MSI /passive /qn /norestart

    That seems to work. :)

  4. ECHO.
    ECHO Norton Antivirus Corporate Edition 7.6
    start /wait \\192.168.58.1\vphome\clt-inst\WIN32\SETUP.EXE /S

    Executes setup, but doesnt run silently.

    ECHO.
    ECHO Microsoft Office 2000 Professional
    start \\192.168.58.1\"system files"\"Microsoft Office 2000 Professional"\Setup\Disc1\SETUP.EXE transforms="\\192.168.58.1\system files\Microsoft Office 2000 Professional\Setup\Disc1\unattended.MST" /qb-
    start \\192.168.58.1\"system files"\"Microsoft Office 2000 Professional"\Setup\Disc2\SETUP.EXE transforms="\\192.168.58.1\system files\Microsoft Office 2000 Professional\Setup\Disc2\unattended2.MST" /qb-

    Executes the first disc (setup) and installs silently. But as soon as its executed the other executes.

    How can I delay it until setup has finished?

  5. Ok, Im stumped...

    Ive got my cmd file running on first boot up after fresh installation.

    But when it comes to installing microsoft office using my transforms file and the /qb+ switches it completely skips it with no errors...

    Heres my cmd file...

    CLS
    @echo off
    TITLE Final Installation tasks...

    net use H: \\192.168.58.1\data /user:REDHILL\administrator *********

    ECHO.
    ECHO Copying Shortcuts
    COPY "\\192.168.58.1\data\utility\support\Employee Intranet.url" "C:\Documents and Settings\All Users\Desktop\"

    ECHO.
    ECHO Adobe Acrobat Reader 7.0
    start /wait C:\Install\"Adobe Acrobat Reader"\AdbeRdr70_enu_full.exe -p-s /v/qn

    ECHO.
    ECHO WinZip 9.0
    start /wait C:\Install\WinZip\WINZIP32.exe /noqp /autoinstall

    ECHO.
    ECHO Macromedia ShockWave Player 8.0
    start /wait C:\Install\"Macromedia Shockwave Player"\Shockwave_Installer_Full.exe /S

    ECHO.
    ECHO Microsoft .NET Framework 1.1
    start C:\Install\"Microsoft .NET Framework 1.1"\dotnetfx.exe /q /c:"install.exe /q"

    [b]ECHO.
    ECHO Microsoft Office 2000 Professional Disc 1
    start /wait \\192.168.58.1\"system files"\"Microsoft Office 2000 Professional"\Setup\Disc1\SETUP.EXE transforms="\\192.168.58.1\system files\Microsoft Office 2000 Professional\Setup\Disc1\unattended.MST" /qb-

    ECHO.
    ECHO Microsoft Office 2000 Professional Disc 2
    start /wait \\192.168.58.1\"system files"\"Microsoft Office 2000 Professional"\Setup\Disc2\SETUP.EXE transforms="\\192.168.58.1\system files\Microsoft Office 2000 Professional\Setup\Disc2\unattended.MST" /qb-

    ECHO.
    ECHO Norton Antivirus Corporate Edition 7.6
    start /wait C:\antivirus.cmd

    ECHO.
    ECHO Completing Final Installation Tasks
    net user aspnet /DELETE
    net use H: /DELETE

    EXIT

    I have tried running each from their own cmd files... doesnt work.

    If I run my cmd file after my system has started up it seems to run the first disc. But not the second.

    Please help!!!

  6. :hello: Hello!

    Ok, Trying to run several setups silently from a batch file after installation of windows.

    Problem I have is the files needed are stored on a server.

    When the setup file is "called" it asks for password and username, what commands shall I add to my batch to stop it asking!?

    EDIT:

    net use X: \\SERVER\FOLDER /user:DOMAIN\USERNAME PASSWORD

    Map any file, folder from the server, and itll remember the logon details.

  7. Ok, ill give it ago without the network mappings... but some of the installations are coming from drives that will need to be mapped.

    I've found out how to add usernames and passwords for the mappings...

    cmdow @ /HID
    @Echo Off

    SET PP=%SystemDrive%\Install\
    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "CBSbutler Final Installation Tasks" /f

    REG ADD %KEY%\000 /VE /D "Mapping Network Drives" /f
    net use H: /delete
    net use P: /delete
    net use S: /delete
    net use T: /delete
    net use H: \\192.168.58.1\data /user:REDHILL\administrator password:********
    net use P: \\Profile1\profile7-000
    net use S: \\192.168.58.1\system files
    net use T: \\192.168.58.1\vphome

    REG ADD %KEY%\001 /VE /D "Copying Shortcuts" /f
    COPY "\"H:\utility\support\Employee Intranet.url\" \"C:\Documents and Settings\All Users\Desktop\""

    REG ADD %KEY%\002 /VE /D "Adobe Acrobat Reader 7.0" /f
    REG ADD %KEY%\002 /V 1 /D "\"H:\UTILITY\Software\Acrobat\Adobe Acrobat Reader\Ver 7\AdbeRdr70_enu_full.exe\" -p\"-s /v\"/qn\"\"" /f

    REG ADD %KEY%\003 /VE /D "WinZip 9.0" /f
    REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\"Program Files\"\WinZip\winzip32.exe /noqp /autoinstall" /f

    REG ADD %KEY%\004 /VE /D "Macromedia ShockWave Player 8.0" /f
    REG ADD %KEY%\004 /V 1 /D "%PP%Macromedia\Shockwave_Installer_Full.exe /S" /f

    REG ADD %KEY%\005 /VE /D "Microsoft .NET Framework 1.1" /f
    REG ADD %KEY%\005 /V 1 /D "%PP%Microsoft\dotnetfw.exe /q /c:\"install /q\"" /f

    REG ADD %KEY%\006 /VE /D "Microsoft Office 2000" /f
    REG ADD %KEY%\006 /V 1 /D "\"S:\MS Office 2000\Disk1\SETUP.EXE\""
    REG ADD %KEY%\006 /V 2 /D "\"S:\MS Office 2000\Disk2\SETUP.EXE\""
    REG ADD %KEY%\006 /V 3 /D "\"S:\Service Packs\Office Updates\Office 2000 Service Packs\o2ksp3.exe\""

    REG ADD %KEY%\007 /VE /D "Norton Antivirus Corporate Edition 7.6" /f
    REG ADD %KEY%\007 /V 1 /D "\"T:\clt-inst\WIN32\NAVCE.EXE\" /QN" /f

    REG ADD %KEY%\008 /VE /D "Installing Patches and further Security Fixes" /f
    REG ADD %KEY%\008 /V 1 /D ""

    REG ADD %KEY%\009 /VE /D "Completing CBSbutler Final Installation Tasks" /f
    REG ADD %KEY%\009 /V 1 /D "%PP%cleanup.cmd" /f

    EXIT

    Ill try the above script first... If that fails, ill try it without the network mappings, one app at a time. Cheers

  8. I'm using it on my windows 2000 installation.

    Upon connecting it prompts for a password to connect to the network... Dont want it to ask.And even entering the correct password it always returns back that it was incorrect.

    After skipping that, it says "cannot find the file "RunOnceEx.cmd" (or one of its components). Make sure the path or filename is correct and that all the libaries are availabe"

    :s

  9. 1: Complete ALL your nLiting/HFSLIPing/XPloding ... ect.

    2: Copy the following files from your I386 directory, to the root of %systemdrive% (you can delete it after modification)...

    NTOSKRNL.EX_

    NTKRPAMP.EX_

    NTKRNLMP.EX_

    NTKRNLPA.EX_

    3: Now the fun parts...

    Press Start>Run>"CMD">OK

    Type the following, hitting return after each line...

    expand.exe ntoskrnl.ex_ ntoskrnl.exe
    expand.exe ntkrpamp.ex_ ntkrpamp.exe
    expand.exe ntkrnlmp.ex_ ntkrnlmp.exe
    expand.exe ntkrnlpa.ex_ ntkrnlpa.exe

    4: Click this link ResHacker

    Save a copy or open from the download. When you open the downloaded file. I'd Extract it to %systemdrive%\Program Files\Reshacker (create the directory). Create a shortcut and add it to your start menu/desktop ect...

    Open Reshacker, Click File>Open and point to C:\ntoskrnl.exe.

    Expand "Bitmap", expand "1" and click "1033". Right Click on "1033" and click "save [bitmap : 1 : 1033]..."

    Save this file to your %systemdrive%.

    5: Now go to your saved image. Open it in Paint (ect) and do your editing... Remembering you CAN NOT increase the dimensions, and it must be saved as a 16 colour bitmap.

    6: Reopen "Reshacker", Point to the "ntoskrnl.exe" file again, expanding the same archives.

    Right click "1033" again, but this time click "Replace Resource".

    Click "Open file with new bitmap" and point to your edited Bitmap.

    Click "Replace".

    Click "File>Save"

    7: Repeat process 6: For "ntkrpamp.exe", "ntkrnlmp.exe", and "ntkrnlpa.exe"

    Replacing the same image each time. (Not sure what will happen if you use different ones)

    8: Press Start>Run>"CMD">OK

    Type the following, hitting return after each line...

    makecab.exe ntoskrnl.exe ntoskrnl.ex_
    makecab.exe ntkrpamp.exe ntkrpamp.ex_
    makecab.exe ntkrnlmp.exe ntkrnlmp.ex_
    makecab.exe ntkrnlpa.exe ntkrnlpa.ex_

    9: Copy all the files ending in .ex_ (Except ones with _original in the name, you can remove these) Back to your "I386" Directory, overwriting the originals if prompted.

    ---------------------------------------------------------------------------------------------

    All the above has edited your bootscreen during the Windows 2000 installation process. Once Windows is installed it will revert back to the originals.

    To fix it so it will stay with your edited bootscreen, or to modify it for another edited bootscreen after install; follow the rest of the guide...

    ---------------------------------------------------------------------------------------------

    9: Copy the following files from your "I386" directory, to the root of %systemdrive% (you can delete it after modification)...

    SP4.CAB

    SP3.CAB

    10: Extract the contents of each cab using WinZip or WinRar, I'd advise you to extract them to directories named "SP4" and "SP3"...

    11: Copy the following files to each folder, SP3, and SP4.

    NTOSKRNL.exe

    NTKRPAMP.exe

    NTKRNLMP.exe

    NTKRNLPA.exe

    Replacing any files if prompted.

    12: Click Microsoft Cabinet Software Development Kit

    Save the file to "%systemdrive%\Windows\System32\"

    Press Start>Run>"CMD">OK

    Type the following, hitting return after each line

    cd c:\sp4
    cabarc.exe n sp4.cab *.*
    cd c:\sp3
    cabarc.exe n sp3.cab *.*

    Within the sp3, and sp4 folders will be the repacked cabinet files. (SP4.CAB, SP3.CAB) And copy these to your "I386" Directory.

    DONE! :thumbup:w00t:

    Cheers to memberjoe for his help! :hello:

  10. My Winnt.SIF

    ;SetupMgrTag
    [Data]
    AutoPartition=1
    MsDosInitiated="0"
    UnattendedInstall="Yes"

    [Unattended]
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=Yes
    TargetPath=\WINDOWS
    Repartition=Yes
    WaitForReboot="No"
    OemPnPDriversPath="Drivers\001_network"
    DriverSigningPolicy=Ignore
    KeyboardLayout="United Kingdom"

    [GuiUnattended]
    AdminPassword=*******
    AutoLogon=Yes
    AutoLogonCount=1
    OEMSkipRegional=1
    TimeZone=85
    OemSkipWelcome=1

    [UserData]
    ProductID="*****-*****-*****-*****-*****"
    FullName=""
    OrgName=""
    ComputerName=*

    [Display]
    BitsPerPel=24
    Xresolution=1024
    YResolution=768
    Vrefresh=75

    [RegionalSettings]
    LanguageGroup=1
    SystemLocale=00000809
    UserLocale=00000809
    InputLocale=0809:00000809

    [Identification]
    JoinDomain=REDHILL
    DomainAdmin=administrator
    DomainAdminPassword=********

    [Networking]
    InstallDefaultComponents=Yes

    [Branding]
    BrandIEUsingUnattended=Yes

    [URL]
    Home_Page=http://www.google.co.uk/
    Search_Page=http://www.google.co.uk/

    [Proxy]
    Proxy_Enable=0
    Use_Same_Proxy=1

    [GuiRunOnce]
    RunOnceEx.cmd

    My CMDLINES.TXT

    [Commands]
    "REGEDIT /S .\discover.reg"
    "cmd /c start /min cmd /c .\discover.bat"
    "RunOnceEx.cmd"

    My RunOnceEx.cmd

    cmdow @ /HID
    @Echo Off
    SET PP=%SystemDrive%\Install\

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "Final Installation Tasks" /f

    REG ADD %KEY%\000 /VE /D "Mapping Network Drives" /f
    regedit  /s ie.reg
    net time \\192.168.58.1 /set /y
    net use H: "\\192.168.58.1\data"
    net use P: "\\192.168.58.1\profile7-000"
    net use S: "\\192.168.58.1\system files"
    net use T: "\\192.168.58.1\vphome

    REG ADD %KEY%\001 /VE /D "Copying Shortcuts" /f
    copy "H:\utility\support\Employee Intranet.url" "C:\Documents and Settings\All Users\Desktop"

    REG ADD %KEY%\002 /VE /D "Adobe Acrobat Reader 7.0" /f
    REG ADD %KEY%\002 /V 1 /D ""H:\UTILITY\Software\Acrobat\Adobe Acrobat Reader\Ver 7\AdbeRdr70_enu_full.exe" -p\"-s /v\"/qn\"\"" /f

    REG ADD %KEY%\003 /VE /D "WinZip 9.0" /f
    REG ADD %KEY%\003 /V 1 /D "%PP%"Program Files"\WinZip\winzip32.exe /noqp /autoinstall" /f

    REG ADD %KEY%\004 /VE /D "Microsoft .NET Framework 1.1" /f
    REG ADD %KEY%\004 /V 1 /D "%PP%Microsoft\dotnetfw.exe /q /c:"install /q"" /f

    REG ADD %KEY%\005 /VE /D "Macromedia ShockWave Player 8.0" /f
    REG ADD %KEY%\005 /V 1 /D "%PP%Macromedia\Shockwave_Installer_Full.exe /S" /f

    REG ADD %KEY%\006 /VE /D "Norton Anitvirus Corporate Edition" /f
    REG ADD %KEY%\006 /V 1 /D ""T:\clt-inst\WIN32\NAVCE.EXE" /QN" /f

    REG ADD %KEY%\007 /VE /D "Completing Final Installation Tasks" /f
    REG ADD %KEY%\007 /V 1 /D "%PP%cleanup.cmd" /f
    net use T: /DELETE

    EXIT

    My Folder Structure is as follows.

    folderstructure.JPG

    My Installation Is Windows 2000, with Service Pack 4, IE6, DirectX9 Slipstreamed.

    And over 20 hotfixes intergrated.

    Any Problems you can spot? Please let me know.

×
×
  • Create New...