Jump to content

Mr_Smartepants

Members
  • Posts

    807
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Mr_Smartepants

  1. To test it, I logged in as a normal user and opened a cmd window as admin and pasted the following. 

    start "" /min /separate %comspec% /c shutdown /r /t 90 /c "Finished Phase 1, base install, the system will reboot in 90 seconds and start Phase 2 - RunOnce WU_Satisfy"

    As expected I got the warning message "Finished Phase1..." and the system rebooted on its own 90 seconds later.

     

    Can you get a screenshot of the message? (pause VM, screenshot).

  2. Try this:

    1.) Click the below link and the button " Install Windows 8.1 Pro " and choose make USB or ISO file 
     
    2.) Boot to USB and 'install full version' or 'upgrade' your choice (use a Windows 8.1 Pro Key)
     
  3. The "planned/unplanned" reasons were there only for server OS since they will halt the shutdown/restart to ask for a reason.  Consumer OS types don't ask.

    More info: http://technet.microsoft.com/en-us/library/cc732503.aspx

     

    I remember having a problem with shutdown before.

    This will open a new command window and run the 'shutdown' line from there.  It'll also allow the first window to close gracefully while the shutdown is in progress.

    Try this instead:

    start "" /min /separate %comspec% /c shutdown /r /t 90 /c "Finished Phase 1, base install, the system will reboot in 90 seconds and start Phase 2 - RunOnce WU_Satisfy"

  4. shutdown /r /t 90 /d p:0:11 /c "Finished Phase 1, base install, the system will reboot in 90 seconds and start Phase 2 - RunOnce WU_Satisfy"

    The "/d p:0:11" parameter is not valid.  Major:0, Minor:11 doesn't match anything in the below table.  Just skip it.

    Microsoft Windows [Version 6.1.7601]

    Copyright © 2009 Microsoft Corporation.  All rights reserved.
     
    C:\Users\Blah>shutdown /?
    Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
        [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
     
        No args    Display help. This is the same as typing /?.
        /?         Display help. This is the same as not typing any options.
        /i         Display the graphical user interface (GUI).
                   This must be the first option.
        /l         Log off. This cannot be used with /m or /d options.
        /s         Shutdown the computer.
        /r         Shutdown and restart the computer.
        /g         Shutdown and restart the computer. After the system is
                   rebooted, restart any registered applications.
        /a         Abort a system shutdown.
                   This can only be used during the time-out period.
        /p         Turn off the local computer with no time-out or warning.
                   Can be used with /d and /f options.
        /h         Hibernate the local computer.
                   Can be used with the /f option.
        /e         Document the reason for an unexpected shutdown of a computer.
        /m \\computer Specify the target computer.
        /t xxx     Set the time-out period before shutdown to xxx seconds.
                   The valid range is 0-315360000 (10 years), with a default of 30.
                   If the timeout period is greater than 0, the /f parameter is
                   implied.
        /c "comment" Comment on the reason for the restart or shutdown.
                   Maximum of 512 characters allowed.
        /f         Force running applications to close without forewarning users.
                   The /f parameter is implied when a value greater than 0 is
                   specified for the /t parameter.
        /d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
                   p indicates that the restart or shutdown is planned.
                   u indicates that the reason is user defined.
                   If neither p nor u is specified the restart or shutdown is
                   unplanned.
                   xx is the major reason number (positive integer less than 256).
                   yy is the minor reason number (positive integer less than 65536).
     
     
    Reasons on this computer:
    (E = Expected U = Unexpected P = planned, C = customer defined)
    Type    Major   Minor   Title
     
     U      0       0       Other (Unplanned)
    E       0       0       Other (Unplanned)
    E P     0       0       Other (Planned)
     U      0       5       Other Failure: System Unresponsive
    E       1       1       Hardware: Maintenance (Unplanned)
    E P     1       1       Hardware: Maintenance (Planned)
    E       1       2       Hardware: Installation (Unplanned)
    E P     1       2       Hardware: Installation (Planned)
    E       2       2       Operating System: Recovery (Planned)
    E P     2       2       Operating System: Recovery (Planned)
      P     2       3       Operating System: Upgrade (Planned)
    E       2       4       Operating System: Reconfiguration (Unplanned)
    E P     2       4       Operating System: Reconfiguration (Planned)
      P     2       16      Operating System: Service pack (Planned)
            2       17      Operating System: Hot fix (Unplanned)
      P     2       17      Operating System: Hot fix (Planned)
            2       18      Operating System: Security fix (Unplanned)
      P     2       18      Operating System: Security fix (Planned)
    E       4       1       Application: Maintenance (Unplanned)
    E P     4       1       Application: Maintenance (Planned)
    E P     4       2       Application: Installation (Planned)
    E       4       5       Application: Unresponsive
    E       4       6       Application: Unstable
     U      5       15      System Failure: Stop error
     U      5       19      Security issue
    E       5       19      Security issue
    E P     5       19      Security issue
    E       5       20      Loss of network connectivity (Unplanned)
     U      6       11      Power Failure: Cord Unplugged
     U      6       12      Power Failure: Environment
      P     7       0       Legacy API shutdown

    Try this instead:
    shutdown /r /t 90 /c "Finished Phase 1, base install, the system will reboot in 90 seconds and start Phase 2 - RunOnce WU_Satisfy"
  5. Holy Crap that's a lot of drivers!  :omg:

    I can't imagine what your DriverStore folder looks like.  It must be HUGE!

    Typically, I only integrate critical chipset drivers and mass-storage drivers into the .wim files.  

    Then I integrate all the drivers during post-install via our SAD (Stand-Alone Drivers Disc) utility via setupcomplete.cmd.

    SAD discussion thread (and download): http://forum.driverpacks.net/viewtopic.php?pid=53470#p53470

     

    If you integrate too many drivers then your "C:\Windows\System32\DriverStore" folder will balloon out of control.  I don't know if there's a hard-limit but I'm pretty sure you broke it! ;)

     

    *Edit

    There's a max number of network filter drivers.  14.

    http://social.technet.microsoft.com/Forums/windows/en-US/4deb27fc-33ce-4fc0-a26f-3fec5b57733d/is-there-a-maximum-number-of-network-filter-drivers-in-windows-7

    Based on my research, I would like to answer you that the maximum number of network filter drivers in Windows 7 is 14. However, it is hard coded to allow 14 filter drivers. By default, the number is 8. To view the number or modify the number, please access the following registry key:
     
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\  MaxNumFilters

     

     

  6. You mean the current directory where the installer files are stored?

    Sure.  Shouldn't be too much of a problem.

    Thanks for asking, you actually pointed out a minor bug in my code (fixed now).

     

    Here ya go:

    @ECHO off & setlocal EnableDelayedExpansionSET "O_LOGFILE=%systemdrive%\install.log":PROCESSORREM :: Detect OS bit-ness on running system.  Assumes 64-bit unless 64-bit components do not exist. SET "ARCH=64" & SET "ARCHP=x64"IF /I NOT EXIST "%SystemRoot%\SysWOW64\cmd.exe" (    IF NOT DEFINED PROCESSOR_ARCHITEW6432 (SET "ARCH=32" & SET "ARCHP=x86")) ECHO>>"%O_LOGFILE%" 2>>&1 System architecture is %ARCH% bit.:PROCESSOR_end:NET_Framework_45REM :: Change below path to where the NET45 installer is stored.SET "D_NET45path=%CD%\updates\NET45"IF /I NOT EXIST "%D_NET45path%\dotnetfx45_full_x86_x64.exe" GOTO NET_Framework_45_endECHO>>"%O_LOGFILE%" ......................ECHO>>"%O_LOGFILE%" 2>>&1 Installing .NET 4.5 FrameworkSET "F_NET45msp="FOR /F %%m IN ('dir /b /s "%D_NET45path%\%ARCHP%\NDP45-KB*.msp"') DO (  IF NOT DEFINED F_NET45msp (SET "F_NET45msp=%%m") ELSE (SET "F_NET45msp=!F_NET45msp!;%%m")  ECHO %%m) 1>>"%O_LOGFILE%" 2>>&1ECHO>>"%O_LOGFILE%" 2>>&1 Executing: %D_NET45path%\dotnetfx45_full_x86_x64.exe /passive /norestart /MSIOPTIONS "PATCH=%F_NET45msp%"%D_NET45path%\dotnetfx45_full_x86_x64.exe /passive /norestart /MSIOPTIONS "PATCH=%F_NET45msp%" >>"%O_LOGFILE%" 2>>&1ECHO>>"%O_LOGFILE%" 2>>&1 Completed .NET 4.5 Framework installation:NET_Framework_45_end
  7. As a test (Win7 VM), I installed the original .net 4.5 installer (from here: http://www.microsoft.com/en-us/download/details.aspx?id=30653 ).

    Then after a restart, checked Windows Update and only got a list of 9 updates to install:

    KB2737083

    KB2742613

    KB2750147

    KB2789648

    KB2804582

    KB2805221

    KB2805226

    KB2833957

    KB2840642

    This differs quite a bit from the list of updates you include in your repack.  In fact, KB2519265 doesn't have any M$ page associated with it and isn't available from anywhere other than McRip's archives.

  8. You can try my batch script which will rebuild your source into a dual BIOS/UEFI .iso file.

    Change the variables to suit your needs.

     

    @ECHO offsetlocal EnableDelayedExpansionREM :: Set path to source directorySET "src=%cd%\src"REM :: Set custom name for ISOSET "ISOX=Win7-64":OSCDIMG-checkREM :: Detects the presence of oscdimg for .iso creation function.  Critical check, will exit utility IF NOT found.IF /I EXIST "%ProgramFiles%\Windows AIK\Tools\%PROCESSOR_ARCHITECTURE%\oscdimg.exe" (SET "OSCD=%ProgramFiles%\Windows AIK\Tools\%PROCESSOR_ARCHITECTURE%\oscdimg.exe") ELSE (ECHO ** %time%- OSCDIMG.EXE not found. & GOTO end):Begin-testFOR /F "delims=" %%a IN ('dir /s /b "%src%\etfsboot.com"') DO (SET "biosB=%%a")FOR /F "delims=" %%a IN ('dir /s /b "%src%\efisys.bin"') DO (SET "uefiB=%%a")ECHO biosB is %biosB%ECHO uefiB is ïiB%"%OSCD%" -m -o -l"%ISOX%" -u2 -udfver102 -bootdata:2#p0,e,b"%biosB%"#pEF,e,b"ïiB%" "%src%" "%cd%\%ISOX%.iso":endpauseendlocal:eof
  9. Well in that case, here's the same code altered to use x86/x64 folders instead of in the filenames. :D

     

    @ECHO off & setlocal EnableDelayedExpansionSET "O_LOGFILE=%systemdrive%\install.log"FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (DIR %%i: && IF /I EXIST %%i:\sources\install.wim SET "CDROM=%%i:") >nul 2>&1ECHO>>"%O_LOGFILE%" 2>>&1 Found install-source as drive %CDROM%:PROCESSORREM :: Detect OS bit-ness on running system.  Assumes 64-bit unless 64-bit components do not exist. SET "ARCH=64" & SET "ARCHP=x64"IF /I NOT EXIST "%SystemRoot%\SysWOW64\cmd.exe" (    IF NOT DEFINED PROCESSOR_ARCHITEW6432 (SET "ARCH=32" & SET "ARCHP=x86")) ECHO>>"%O_LOGFILE%" 2>>&1 System architecture is %ARCH% bit.:PROCESSOR_end:NET_Framework_45SET "D_NET45path=%CDROM%\updates\NET45"IF /I NOT EXIST "%D_NET45path%\dotnetfx45_full_x86_x64.exe" GOTO NET_Framework_45_endECHO>>"%O_LOGFILE%" ......................ECHO>>"%O_LOGFILE%" 2>>&1 Installing .NET 4.5 FrameworkSET "F_NET45msp="FOR /F %%m IN ('dir /b /s "%D_NET45path%\%ARCHP%\NDP45-KB*.msp"') DO (  IF NOT DEFINED F_NET45msp (SET "F_NET45msp=%%m") ELSE (SET "F_NET45msp=!F_NET45msp!;%%m")  ECHO %%m) 1>>"%O_LOGFILE%" 2>>&1ECHO Executing: %CDROM%\updates\NET45\dotnetfx45_full_x86_x64.exe /passive /norestart /MSIOPTIONS "PATCH=%F_NET45msp%" >>"%O_LOGFILE%" 2>>&1%CDROM%\updates\NET45\dotnetfx45_full_x86_x64.exe /passive /norestart /MSIOPTIONS "PATCH=%F_NET45msp%" >>"%O_LOGFILE%" 2>>&1ECHO>>"%O_LOGFILE%" 2>>&1 Completed .NET 4.5 Framework installation:NET_Framework_45_end
  10. Here's a batch script to accomplish the .msp update/install from setupcomplete.cmd (or anywhere else).

    I haven't tested it in a live install, but I've done a mock-install and the logfile has the correct output.  Should be fine. ;)

     

    *Edit:  Obviously you'd need to change the file paths to suit your needs...

    @ECHO off & setlocal EnableDelayedExpansionSET "O_LOGFILE=%systemdrive%\install.log"FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (DIR %%i: && IF /I EXIST %%i:\sources\install.wim SET "CDROM=%%i:") >nul 2>&1ECHO>>"%O_LOGFILE%" 2>>&1 Found install-source as drive %CDROM%:PROCESSORREM :: Detect OS bit-ness on running system.  Assumes 64-bit unless 64-bit components do not exist. SET "ARCH=64" & SET "ARCHP=x64"IF /I NOT EXIST "%SystemRoot%\SysWOW64\cmd.exe" (    IF NOT DEFINED PROCESSOR_ARCHITEW6432 (SET "ARCH=32" & SET "ARCHP=x86")) ECHO>>"%O_LOGFILE%" 2>>&1 System architecture is %ARCH% bit.:PROCESSOR_end:NET_Framework_45IF /I NOT EXIST "%CDROM%\updates\NET45\dotnetfx45_full_x86_x64.exe" GOTO NET_Framework_45_endECHO>>"%O_LOGFILE%" ......................ECHO>>"%O_LOGFILE%" 2>>&1 Installing .NET 4.5 FrameworkSET "F_NET45msp="FOR /F %%m IN ('dir /b /s "%CDROM%\updates\NET45\NDP45-KB*-%ARCHP%.msp"') DO (  IF NOT DEFINED F_NET45msp (SET "F_NET45msp=%%m") ELSE (SET "F_NET45msp=!F_NET45msp!;%%m")  ECHO %%m) 1>>"%O_LOGFILE%" 2>>&1ECHO Executing: %CDROM%\updates\NET45\dotnetfx45_full_x86_x64.exe /passive /norestart /MSIOPTIONS "PATCH=%F_NET45msp%" >>"%O_LOGFILE%" 2>>&1%CDROM%\updates\NET45\dotnetfx45_full_x86_x64.exe /passive /norestart /MSIOPTIONS "PATCH=%F_NET45msp%" >>"%O_LOGFILE%" 2>>&1ECHO>>"%O_LOGFILE%" 2>>&1 Completed .NET 4.5 Framework installation:NET_Framework_45_end
  11. You do realize that flash media only has so many write cycles and then they die...right?

    Try it on a different machine.

    If it's dead, then throw it out (or smash it with a hammer to vent your frustration) and buy another one.  They're cheap now.

  12. It doesn't work because Realtek broke it; not because of anything WinToolkit does.  This happens all the time.  Realtek is notorious for breaking support on older hardware in order to support newer hardware in their monolithic drivers.

    They're not the only ones either.  On my Asus laptop, I'm constantly nagged by Windows Update for an updated USB3 driver (Fresco Logic).  When I update to the newer version it kills all my USB ports until I revert back and hide the update.  This continues with each new version. :(

  13. And your key is most definitely NOT the one on the sticker.  Those CoA keys haven't been the real keys since XP SP2.  Your key is called an OEM-SLP key and each manufacturer uses the same key on thousands of machines.

     

    You can also load the cert/key after the OS is done installing.

    slmgr.vbs -ilc PATH\to\your\certificate\*.xrm-ms
    slmgr.vbs -ipk KEYKE-YKEYK-EYKEY-KEYKE-YKEYK
     
    <reboot>...done!
  14. Rick, I notice you don't list KB2804582.  Is that because it is replaced by a newer patch?  It's showing a release date of yesterday.

    http://support.microsoft.com/kb/2836440

     

     

    Resolves a vulnerability in the Microsoft .NET Framework that could allow identity spoofing on a client system.

    2804582 MS13-040: Description of the security update for the .NET Framework 4.5 on Windows 7 Service Pack 1, Windows Server 2008 R2 Service Pack 1, Windows Vista Service Pack 2, and Windows Server 2008 Service Pack 2: May 14, 2013

    http://support.microsoft.com/kb/2804582

     

    If it's superseded, which update replaces it?

    Thanks! :)

×
×
  • Create New...