Latest Addition ==> Bob.Omb's Modified Win10PEx64 v4.4 - RS5

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Bob.Omb

Pages: [1]
1
The Tool Shed / WinNTSetup3
« on: September 15, 2018, 08:40:35 pm »
This is an awesome tool! You can install windows in minutes (2 minutes with SSD and USB 3.0)



You can get the latest version here: http://jfx.cwcodes.net/WinNTSetup/Release/WinNTSetup3.rar

I also use a batch script to launch WinNTSetupx64 to make it easier to use.  It prepares the drives for you in either MBR or GPT format.  Then imports the drive letters into the appropriate fields so that all you have to do is select the iso and your edition of windows.  The batch script FORMATS the selected drive, if you use it, be careful which drive you are selecting

Copy the below code and save it to a .BAT or .CMD file, and place it in the same directory as WinNTSetup_x64.exe

Code: [Select]
@ECHO OFF
CLS
CD %~dp0
IF EXIST GPT.ini DEL GPT.ini
IF EXIST MBR.ini DEL MBR.ini
IF EXIST tempgpt.ini DEL tempgpt.ini
IF EXIST tempmbr.ini DEL tempmbr.ini
TITLE Prepare Disk for WinNTSetup3
:PRIVILEGECHECK
NET SESSION >nul 2>&1
IF %errorlevel% == 0 (
GOTO SELECTTYPE
) else (
GOTO GETPRIVILEGE
)
:NOPRIVILEGE
ECHO        Prepare Hard Disks for WinNTSetup3 GPT or MBR
ECHO -----------------------------------------------------------
ECHO           Warning, Elevated Privilege is Required
ECHO.                                       
ECHO                 RE-OPEN AS AN ADMINISTRATOR       
ECHO                  THE PROGRAM WILL NOW EXIT
ECHO.
ECHO -----------------------------------------------------------
ECHO.
PAUSE
EXIT
:GETPRIVILEGE
SET "params=%*"
SETLOCAL EnableDelayedExpansion
CD /d "%~dp0" && ( IF EXIST "%temp%\getadmin.vbs" DEL "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>NUL 2>NUL || (  ECHO Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k CD ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && EXIT /B )
GOTO NOPRIVILEGE
:SELECTTYPE
ECHO Prepare Hard Disk for WinNTSetup3 GPT or MBR
ECHO --------------------------------------------
ECHO.
CHOICE /C MG /M "Are you setting up for MBR or GPT "
IF %ERRORLEVEL% == 1 GOTO INITMBR
IF %ERRORLEVEL% == 2 GOTO INITGPT
ECHO.
ECHO Invalid selection! Please choose a valid selection.
ECHO.
PAUSE
GOTO SELECTTYPE
EXIT
:INITMBR
CLS
ECHO Prepare Hard Disk for WinNTSetup3 (MBR)
ECHO --------------------------------------------
ECHO.
ECHO list disk >> list.txt
diskpart /s list.txt
DEL list.txt>nul
ECHO.
SET /p disk="Which disk number would you like to prepare? (e.g. 0): "
IF [%DISK%] == [] GOTO INITMBR
ECHO.
ECHO --WARNING-- This will FORMAT the selected disk and ERASE ALL DATA
ECHO.
ECHO You selected disk ---^> %disk%
ECHO.
CHOICE /C YN /M "Is this correct "
IF %ERRORLEVEL% == 1 GOTO INITMBR2
CLS
ECHO Preperation Aborted, No changes have been made...
ECHO.
PAUSE
EXIT
:INITMBR2
SET "a="
FOR %%a IN (Z Y X W V U T S R Q P O N M) DO (
IF NOT EXIST "%%a:" SET BOOTDRV=%%a
)
ECHO sel dis %disk% >> initmbr.txt
ECHO clean >>initmbr.txt
ECHO convert mbr >> initmbr.txt
ECHO cre par pri >> initmbr.txt
ECHO for quick fs=ntfs label="Windows" >> initmbr.txt
ECHO assign letter %BOOTDRV% >> initmbr.txt
ECHO active >> initmbr.txt
ECHO exit >> initmbr.txt
:RUNMBR
CLS
diskpart /s initmbr.txt
DEL initmbr.txt >nul
ECHO.
ECHO This drive is now prepared for WinNTSetup3 - MBR\Legacy
ECHO.
ECHO The following drive letters have been assigned, and
ECHO will be automatically loaded into WinNTSetup3
ECHO.
ECHO Boot Drive----------: %BOOTDRV%
ECHO Installation Drive--: %BOOTDRV%
ECHO.
PAUSE
ECHO.
ECHO Please wait while WinNTSetup3 loads...
CD %~dp0
powershell -Command "(gc template.ini) -replace 'BootDest=changeme', 'BootDest=%BOOTDRV%:' | Out-File tempmbr.ini"
powershell -Command "(gc tempmbr.ini) -replace 'TempDest=changeme', 'TempDest=%BOOTDRV%:' | Out-File MBR.ini"
CD ..
START winntsetup_x64.exe /cfg:prep\MBR.ini
EXIT
:INITGPT
CLS
ECHO Prepare Hard Disk for WinNTSetup3 (GPT)
ECHO --------------------------------------------
ECHO.
ECHO list disk >> list.txt
diskpart /s list.txt
DEL list.txt>nul
ECHO.
SET /p disk="Which disk number would you like to prepare? (e.g. 0): "
IF [%disk%] == [] GOTO INITGPT
ECHO.
ECHO --WARNING-- This will FORMAT the selected disk and ERASE ALL DATA
ECHO.
ECHO You selected disk ---^> %disk%
ECHO.
CHOICE /C YN /M "Is this correct "
IF %ERRORLEVEL% == 1 GOTO INITGPT2
CLS
ECHO Preperation Aborted, No changes have been made...
ECHO.
PAUSE
EXIT
:INITGPT2
SET "b="
FOR %%b IN (Q P O N M L K J I) DO (
IF NOT EXIST "%%b:" SET BOOTDRV=%%b
)
SET "c="
FOR %%c IN (Z Y X W V U T S R) DO (
IF NOT EXIST "%%c:" SET DATADRV=%%c
)
ECHO select disk %disk% >> initgpt.txt
ECHO clean >> initgpt.txt
ECHO convert gpt >> initgpt.txt
ECHO cre par efi size=100 >> initgpt.txt
ECHO for quick fs=fat32 label="System" >> initgpt.txt
ECHO assign letter %BOOTDRV% >> initgpt.txt
ECHO cre par msr size=16 >> initgpt.txt
ECHO cre par pri >> initgpt.txt
ECHO shrink minimum=450 >> initgpt.txt
ECHO for quick fs=ntfs label="Windows" >> initgpt.txt
ECHO assign letter %DATADRV% >> initgpt.txt
ECHO cre par pri >> initgpt.txt
ECHO for quick fs=ntfs label="WinRE" >> initgpt.txt
ECHO set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" >> initgpt.txt
:RUNGPT
CLS
diskpart /s initgpt.txt
DEL initgpt.txt >nul
ECHO.
ECHO This drive is now prepared for WinNTSetup3 - GPT\UEFI
ECHO.
ECHO The following drive letters have been assigned, and
ECHO will be automatically loaded into WinNTSetup3
ECHO.
ECHO Boot Drive----------: %BOOTDRV%
ECHO Installation Drive--: %DATADRV%
ECHO.
PAUSE
ECHO.
ECHO Please wait while WinNTSetup3 loads...
CD %~dp0
powershell -Command "(gc template.ini) -replace 'BootDest=changeme', 'BootDest=%BOOTDRV%:' | Out-File tempgpt.ini"
powershell -Command "(gc tempgpt.ini) -replace 'TempDest=changeme', 'TempDest=%DATADRV%:' | Out-File GPT.ini"
CD ..
START winntsetup_x64.exe /cfg:prep\GPT.ini
EXIT

2
The Tool Shed / DISM ++ by Chuyu Team
« on: September 14, 2018, 05:19:58 pm »







Probably one of the most powerful tools out there for servicing existing windows installations.  It works offline in WindowsPE as well and is included in my release.

  • Remove Updates
  • Add Updates
  • Turn Features on and off
  • Easy online and offline DISM /RestoreHealth
  • Remove Appx system apps
  • Remove startup items the right way (NOT by doing a selective startup in msconfig)
  • And tons more...

This is one of my favorite tools...

Sauce: https://www.chuyu.me/en/index.html

3
The Tool Shed / NSudo - Run programs with elevated privilege
« on: September 06, 2018, 09:44:43 pm »
NSudo is a system management tool for advanced users to launch programs with full privileges.

To begin, just choose the User with the choices being TrustedInstaller, Current User, Current Process, and System. A check box is available to Enable All Privileges after that. You can then choose to open PowerShell, Hosts, or browse. Once you've made all your choices, select Run





Version 6.0.1804.5 R3: https://github.com/M2Team/NSudo/releases

4
Discussions / Windows 10 RS5 - Nearing October Release
« on: September 06, 2018, 09:01:01 pm »
The season is approaching... update season  :'(

There are quite a few new noticeable features coming with the RS5 update this October.

Mauro Huculak over @ Pureinfotech.com has put together a great article regarding most of these changes, complete with screenshots and videos. So why re-invent the wheel, take a look..

https://pureinfotech.com/windows-10-redstone-5-version-1809-new-features/

5
The Tool Shed / Reset Windows Update Tool
« on: September 06, 2018, 08:40:27 pm »
This is a pretty useful tool for a system that has mistakenly downloaded corrupt update files or is having issues with Windows Update components.  It is especially effective on Windows 7 systems.

*Compatible with:
Windows 7 (tested)
Windows 8 (tested)
Windows 8.1 (tested)
Windows 10 (tested)

https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Tool-402a3eef

6
Support / I can only see the BOOTFILES partition on my USB when I plug it in
« on: September 03, 2018, 09:30:28 pm »
This can be caused by usbtool.exe

If you are using a USB flash drive on Windows 7 (Possibly 8 and 8.1 as well) you may only see the BOOTFILES partition when plugging in your USB to a live system. (This does not happen on fixed external USB hard drives) For this reason I recommend "Flipping Partitions" with the USB_Part_Flip.exe tool included in UEFI_MULTI_85.exe - Run the USB_Part_Flip.exe tool and select the BOOTFILES partition when prompted.  Follow the onscreen instructions.  Now your USB should only correctly show your WinPESE Data partition on older machines instead of your BOOTFILES partition. Use this tool to flip back and forth as necessary.

UEFI_MUTLI_85.EXE - https://mega.nz/#!tiRXiSwD!hdty2YSe8EUOV51_n8D574whnXg8FYkFxxXvDuquhYU

Your Anti-Virus will probably flag this file but it is safe to use, so you will likely need to disable your Anti-Virus to use it.  This is an untouched clean copy other than removing the password from the archive.

If you want you can also google UEFI_MULTI_85.EXE and you will see the original source here: http://reboot.pro/files/file/279-uefi-multi-make-multi-boot-usb-drive/

Original Archive Password for the download in the original link above: bootwimb85

7
Support / Adding Persistent Custom Registry keys to your USB
« on: September 03, 2018, 07:36:26 pm »
A feature is included to add custom registry keys during boot. 

Export registry keys to .REG files, then place the .REG files in the Y:\System\Registry folder.  .REG files placed in this folder will merge with the system registry during the next boot. 

If you do not know how to export registry keys, below are some brief instructions that may be helpful, although it is best to have some experience with the registry if you are trying to capture keys from an installer...

Exporting Keys from an installer:  This is useful when installing non-portable programs to the Y:\Programs folder.  Use RegShot2 to take (Snapshot 1) before you install the program, and (Snapshot 2) after you install the program.  A folder will be created on your desktop with a .REG file that recorded the newly added keys during the install.  Name the .REG file something unique and add it to the Y:\System\Registry folder to re-add these keys persistently to future boots...

(The .REG files produced by RegShot2 are not perfect, there are usually extra unnecessary keys included and in some cases you will need to remove the excess keys - This will take some practice)

8
Support / Making Persistent Changes to the Start Menu
« on: September 03, 2018, 07:24:47 pm »
Included there is an option to save your Start Menu..

Make any changes you like then go to StartMenu>System Tools>Save Start Menu

The system will then use your custom Start Menu on the next boot.

9
Support / Autorun.CMD - Automatically run commands during boot.
« on: September 03, 2018, 05:40:16 pm »
The Autorun.CMD provided at the root of your USB is able to create Start Menu shotcuts, Desktop shortcuts, automatically map network drives, and anything else you can do in a CMD file.  If you look inside you will see examples of how this is done.  Autorun.CMD runs 20 seconds after boot to give the system and network time to fully start.

This makes it easily possible to add portable applications to your USB.  Simply add the files anywhere on the Y:\ and create shortcuts pointing to those files with nircmd described inside the file. 

This is what the inside of the default Autorun.CMD at the root of your USB looks like:
Code: [Select]
@ECHO OFF
CLS

REM - Below are examples of additional ways to add custom shortcuts to your Desktop and Start Menu, how
REM - to automatically MAP network drives, and how to autorun a program at the end of boot. Remove REM
REM - from the beginning of the lines between the sections to test the commands. This file is run 20
REM - seconds after boot to ensure all drives are mounted and the network is started before executing.

REM -------------------------------------------------------------------------------------------------------
REM - To Create a custom shortcut on the "Desktop"
REM - nircmd shortcut - "pathtoexe" - (Desktop) - "shortcutname"
REM - Example: nircmd.exe shortcut "%SystemRoot%\system32\cmd.exe" "~$folder.desktop$" "Command Prompt"
REM - Example: nircmd.exe shortcut "Y:\Programs\PStart\PStart.exe" "~$folder.desktop$" "PStart"
REM -------------------------------------------------------------------------------------------------------

REM nircmd.exe shortcut "Y:\Programs\PStart\PStart.exe" "~$folder.desktop$" "PStart"

REM -------------------------------------------------------------------------------------------------------
REM - To Create a custom Folder AND Shortcut in the Start Menu
REM - nircmd shortcut - "pathtoexe" - (StartMenuFolder) - "shortcutname"
REM - Example: nircmd.exe shortcut "%SystemRoot%\system32\cmd.exe" "~$folder.programs$\Test" "Command Prompt"
REM - Example: nircmd.exe shortcut "Y:\Programs\PStart\PStart.exe" "~$folder.programs$\PStart" "PStart"
REM -------------------------------------------------------------------------------------------------------

REM nircmd.exe shortcut "Y:\Programs\PStart\PStart.exe" "~$folder.programs$\PStart" "PStart"

REM -------------------------------------------------------------------------------------------------------
REM - To add a custom shortcut to the root of the Start Menu
REM - nircmd shortcut - "pathtexe" - (StartMenuRoot) - "shortcutname"
REM - Example: nircmd.exe shortcut "%SystemRoot%\system32\cmd.exe" "~$folder.programs$" "Command Prompt"
REM - Example: nircmd.exe shortcut "Y:\Programs\Pstart\PStart.exe" "~$folder.programs$" "PStart"
REM -------------------------------------------------------------------------------------------------------

REM nircmd.exe shortcut "Y:\Programs\PStart\PStart.exe" "~$folder.programs$" "PStart"

REM -------------------------------------------------------------------------------------------------------
REM - To automatically MAP a network drive during boot
REM - net use [Driveletter]: [Path] /user:[username] [password]
REM - Example: net use Z: \\sharename\foldername /user:username password
REM -------------------------------------------------------------------------------------------------------

REM net use Z: \\Server\BackupData /user:bob mypassword

REM -------------------------------------------------------------------------------------------------------
REM - To autorun a program when the system starts
REM - Start - "title" - "pathtoexe"
REM - Example: Start "" Y:\Programs\Pstart\Pstart.exe
REM -------------------------------------------------------------------------------------------------------

REM Start "" Y:\Programs\Pstart\Pstart.exe

EXIT

Remove REM from in front of the commands between the instructions to test Autorun.CMD for yourself.

10
Support / Bug Reports
« on: September 02, 2018, 08:04:46 pm »
Please report an bugs with the current build in this thread.

11
Support / Where is the Releases thread?
« on: September 02, 2018, 08:03:18 pm »
Please register and sign in to view the Releases thread.  ;)

If you are having trouble logging in, click here: https://win10rescue.com/index.php?action=login

Pages: [1]