Category Archives: Scripting

MY ZTIDefaultAssociations.wsf MDT Script for Force Applying File Associations in Windows 10

By | March 4, 2017
Share

GitHub Link: https://github.com/brianfgonzalez/Scripts/blob/master/ZTIDefaultAssociations.wsf <job id=”ZTIDefaultAssociations”> <script language=”VBScript” src=”../../Scripts/ZTIUtility.vbs”/> <script language=”VBScript”> ‘ // *************************************************************************** ‘ // ‘ // Copyright (c) Microsoft Corporation. All rights reserved. ‘ // ‘ // Microsoft Deployment Toolkit Solution Accelerator ‘ // ‘ // File: ZTIDefaultAssociations.wsf ‘ // ‘ // Version: 6.3.8443.1000 ‘ // ‘ // Purpose: Use Dism to force apply start… Read More »

My ZTIStartLayoutConfig.wsf for applying a Windows 10 start layout and taskbar setup with MDT/SCCM.

By | March 4, 2017
Share

Note: You must copy your desired LNK files over to the AllUsersProfiles before adding them to the start layout or taskbar. GitHub link: https://github.com/brianfgonzalez/Scripts/blob/master/ZTIStartLayoutConfig.wsf <job id=”ZTIStartLayoutConfig”> <script language=”VBScript” src=”../../Scripts/ZTIUtility.vbs”/> <script language=”VBScript”> ‘ // *************************************************************************** ‘ // ‘ // Copyright (c) Microsoft Corporation. All rights reserved. ‘ // ‘ // Microsoft Deployment Toolkit Solution Accelerator ‘ //… Read More »

Environment Variables set during the “Update Media” processing of MDT

By | January 25, 2017
Share

At the end of running “Update Media” for the 1st run or on any run with the “-force” argument passed, an update script can be called via the “LitetouchPE.xml” file. Here are the dynamic vars exposed that can be called via a custom script. ADKPath | C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit CONTENT |… Read More »

Batch script to set the A1 button actions on a FZ-G1 Toughpad tablet

By | December 14, 2016
Share

Here is the batch, it’s fairly self-explanatory: rem import default user’s hive reg load HKLM\ImportedHive “%SystemDrive%\Users\Default\NTUSER.DAT” rem create batch that will be called by A1 button echo “%ProgramFiles(x86)%\Panasonic\PCam\PCam.exe”>%WinDir%\System32\A1Click_Mapping.bat echo “%ProgramFiles(x86)%\Panasonic\TSModSel\tsmodsel.exe” -G>%WinDir%\System32\A1Hold_Mapping.bat rem ties A1 to cmd.exe /c %WinDir%\System32\A1Click_Mapping.bat and A1Hold_Mapping.bat for the DEFAULT USER Reg.exe add “HKLM\ImportedHive\Control Panel\TabletPC\ButtonMaps\0” /v “ButtonID” /t REG_DWORD /d “2” /f… Read More »

Setting the Wallpaper and Lockscreen in Windows 10

By | December 4, 2016
Share

Finally! I found a failsafe way to set a desired image to both the default wallpaper and lockscreen in Windows 10. Place a Wallpaper.jpg into your MDT “scripts” folder, add Powershell support to your WinPE (you will need to also add .NET support).  Then use this command line after applying the image: powershell.exe -ExecutionPolicy “ByPass”… Read More »