Deutsch (Veraltet!)
This is a tool for creating backups using (almost) only Windows board tools. It makes it easier to create and restore backups with simple commands. It is written in the regular Windows batch script language, which makes it possible to also use those in the Windows PE (pre environment) such as the Windows Setup or Windows boot media.
This script collection works from Windows Vista until the latest Windows 10 version.
The file format of the images is Microsoft's WIM-Format, which can be opened using the file archiver 7-zip.
- You choose any directory on your PC or boot media and place the scripts there. Then you go ahead and download Microsoft Windows Volume Shadow Copy Service SDK. It is not that big, don't worry.
- Install the SDK to the default installation location
- After setup, you go to the directory
C:\Program Files (x86)\Microsoft\VSSSDK72\TestApps\vshadow\bin\obj-chk\amd64
and copy the filevshadow.exe
into the same directory as the DISMBackup scripts. - Optional: Add your DISMBackup directory to the PATH variable for easier access
- Optional: Uninstall the SDK from the Apps & Features control panel
- Optional: Add DISM.EXE as an exception to Windows Defender or other anti virus, it will speed it up a lot!
- That's it. You've successfully installed the DISMBackup scripts!
To create a backup, just enter this in an administrator privileged console:
backup <full path to backup WITHOUT BACKSLASH AT THE END> <destination path>
Example:
backup c: B:\Backup\MyBackup
This will create a backup with a unique file name in it. The file name is composited by the current date and time without spaces and extra characters. The backup file is a .WIM file which can be opened using the file archiver 7-zip - It can even be opened on Linux!
To create a backup, just enter this in an administrator privileged console:
backup-ns <path to backup> <destination path>
Example:
backup-ns d:\git B:\Backup\git
It's very similar to the
backup.cmd
script, though it doesn't use the shadow copy service. It runs DISM right away. Useful for when you want to backup an offline system.
See install.cmd
See Install Windows from WIM Backup using the restore_win scripts
To restore a backup, just enter this in an administrator privileged console:
restore_backup <image file path and name> <path where the image file is restored>
Example
restore_backup B:\Backups\MyBackup\1234567890.WIM D:\OldFiles
Please note, it's like extracting an archive. You may want to clear your destination directory or format your destination drive.
backup.cmd
and the restore scripts support a third parameter to specify the DISM scratch directory. This is useful if you want to use a RAMDISK for it or a specific drive.
In case you don't know what the scratch directory is: DISM uses a directory to store some temporary files while processing.
Examples:
Where
t:\temp
is the scratch directory in the above examples.
backup x: b:\backup\x t:\temp
backup-ns x:\ b:\backup\x t:\temp
restore_backup b:\backup\x x:\ t:\temp
Backs up only your Firefox profiles while Firefox instances are running.
backup-ff <destination path>
Example:
backup-ff d:\destination
You can customize the script to perform this for other browsers. Keep in mind, that due to security restrictions, Chromium based browsers will refuse to load extensions from your profile. You can switch Firefox to avoid shenanigans like this.
Handy tool to recreate the boot environment for Windows. You can copy it onto your Windows installation media and use it from the SHIFT+F10 console.
It makes it a little bit easier to run the
bcdboot
command.
Determine the correct drive letter of your Windows installation
bootfix <drive letter with colon> <language code (optional, default is en-US)>
Example:
bootfix e: en-GB
This script has been moved to its own reprository https://github.com/KyodaiKen/Install11.