Tag Archives: Script

Display the WIM filename during Image Apply step Dynamically

By | November 30, 2016
Share

Since there is no MDT built-in variable assigned with just the wim name, i had to create a seperate step to create the variable “OSDImageName”, which i  then used in my standard image apply step. Here is what the Task Sequence looks like: Step Name Text: Expanding %OSDImageName% (%ImageSize%) to %OSDisk%\… And here is how… Read More »

My First Chocolately Package [Approved] – BatteryBar

By | October 25, 2016
Share

https://chocolatey.org/packages/BatteryBar Chocolately is like apt-get, but for Windows.  My favorite thing about chocately is having the ability to reach out and update all of my packages with one command line “choco upgrade all”!  Making the package took a bit of trial and error, but it was easy enough.  It uses Powershell at it’s base and has… Read More »

Add MDT Selection Profiles for each Out-of-Box Driver Folder using a PowerShell Script

By | October 23, 2016
Share

MDT Task Sequence’s Inject driver steps do not support specifying folders,  so Selection Profiles are the defacto method for bridging this gap.  Here is a script I created to ease the process of creating/importing multiple system drivers into MDT at once.  If ran more than once, it will not create duplicate selection profile entries. /BG

“A required CD/DVD drive driver is missing..” error when installing Windows 7 on new Toughbook laptops. – Updated 2016-12-06

By | October 11, 2016
Share

!! UPDATE: 12/6/2016- If the script doesn’t work, try changing the index number being adjusted to #2. 2 things need to happen to fix this: Windows 7 install PE needs the Windows 7 USB 3.0 driver package injected. USB 3.0 Host Controller Driver: http://pc-dl.panasonic.co.jp/d… USB 3.0 Driver: http://pc-dl.panasonic.co.jp/d… A registry hack (for lack of a… 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 »