Category Archives: Scripting

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 »

“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 »

Batch code snippet to query, then update dynamic values in registry

By | September 21, 2016
Share

FOR /F “tokens=1,2*” %%a in (‘reg.exe query “HKLM\SYSTEM\CurrentControlSet\Control\Class”‘) DO call :FindAndReplace %%a goto cleanup :FindAndReplace reg.exe query “%1\0000” /f “COM3” /d > nul if “%ErrorLevel%”==”0” reg.exe add “%1\0000” /v “AttachedTo” /t REG_SZ /d “COM1” /f exit /b :cleanup echo “This is a test” pause The snippet pulls sub-keys from the “HKLM\SYSTEM\CurrentControlSet\Control\Class” and passing each to a… Read More »

Silent GOBI 5000 (Sierra MC7355) driver installation with desired firmware

By | September 8, 2016
Share

*UPDATED* 2016/10/11 – Corrected file path for ftd.exe for Windows 7. *UPDATED* 2016/09/15 – Corrected FWUPDATE setting “OFF” to ensure no firmware is installed along with driver. Official Build 4316 download link: ftp://ftp.panasonic.com/computer/firmware/sierra_aircard_watcher_v3728_win_xp_7_firmware.zip Download, Extract and Update the “Configuration.ini”, so it doesn’t auto apply the Verizon FW and installs the driver in silent mode: [Default Values]… Read More »