Tag Archives: batch

Disk Wipe Wedge for use with Microsoft Deployment Toolkit (Any release)

By | November 28, 2019
Share

1\Create a folder under the <DeployRoot> named “peFiles” or similar. 2\Populate the folder with the promptForDiskWipe.bat and unattend.xml files from this gist: promptForDiskWipe.bat: https://gist.github.com/brianfgonzalez/dcedc971176ba87551b10ef9f40c332e unattend.xml: https://gist.github.com/brianfgonzalez/d93e4160b03b46885ca187e6bc2fa549 * Click on RAW and then right-click and save-as to save the actual files. 3\Update your MDT boot media to call the promptForDiskWipe.bat script before starting a deployment (litetouch.vbs).… Read More »

Copy an MDT Deployment Share to a USB without building a Media Share

By | March 27, 2017
Share

*Updated to support both x86/x64 boot wims. This script copies an MDT Deployment Share to a USB drive and basically converts it to a media share in the process.  You must edit and update the “DrvLetter” variable. Please the batch file beside the “Deploy” folder. @setlocal enableextensions enabledelayedexpansion @echo off REM Variables that require updating SET… Read More »

A Script to create a a Scheduled Task that runs under the SYSTEM account

By | September 23, 2016
Share

echo start /w “” notepad.exe > “%WinDir%\Temp\temp.bat” echo del /f/q “%%WinDir%%\Temp\temp.bat” >> “%WinDir%\Temp\temp.bat” schtasks /create /ru “NT AUTHORITY\SYSTEM” /tn “sysrun” /tr “cmd.exe /c “”%WinDir%\Temp\temp.bat””” /f /sc “ONIDLE” /i “999” schtasks /run /tn “sysrun” /i :loop for /f “tokens=2 delims=: ” %%f in (‘schtasks /query /tn “sysrun” /fo list ^| find “Status:”‘ ) do ( if… Read More »

How to Set Theme in windows 7 via script for all Users

By | January 9, 2011
Share

—–UPDATED LINK—————– The process of setting the theme for all users outside of group policy is still tedious in Windows 7.  The method I came up with is not the cleanest, but it is supported by Microsoft and easy to implement. Procedure: 1. Build .ThemePack file on test machine via the “Personalization” control panel applet.… Read More »