Skip to content

Instantly share code, notes, and snippets.

@faisalmasood
faisalmasood / autoDeployWindows.bat
Created April 6, 2020 19:59 — forked from jacobsalmela/autoDeployWindows.bat
Script for WinPE to auto deploy a Windows 10 image.
echo select disk 0 > diskpart%ID%.txt
echo clean >> diskpart%ID%.txt
echo ** Creating system reserved partition...
echo create partition primary size=500 >> diskpart%ID%.txt
echo select partition 1 >> diskpart%ID%.txt
echo active >> diskpart%ID%.txt
echo format quick fs=ntfs >> diskpart%ID%.txt
echo assign letter="r" >> diskpart%ID%.txt
@faisalmasood
faisalmasood / Clean-ImageBeforeSysPrep.ps1
Created September 13, 2018 22:21 — forked from Ioan-Popovici/Start-WindowsCleanup.ps1
This PowerShell script is used shrink the windows image before SysPrep by removing volume caches, update backups and update caches.
<#
*********************************************************************************************************
* Requires | Requires PowerShell 3.0 *
* ===================================================================================================== *
* Modified by | Date | Revision | Comments *
* _____________________________________________________________________________________________________ *
* Ioan Popovici | 2017-07-10 | v1.0 | First version *
* Ioan Popovici | 2017-07-10 | v2.0 | Vastly improved *
* Ioan Popovici | 2017-07-14 | v2.1 | Bug fixes and improvements *
* Andrew Reiter | 2017-09-07 | v2.2 | Fix Copy-Item Bug *