Tag Archives: PowerShell

Map A1 button on CF-20 and CF-33 to perform soft dismount from keyboard base

By | November 28, 2018
Share

This sniplet was written to work within a Powershell app deploy toolkit package.  If you are not familiar with that toolkit, get familiar with it, its a huge time saver. ## <Perform Installation tasks here> Execute-Process -Path “$envSystem32Directory\reg.exe” -Parameters (‘load HKLM\ImportedHive “{0}\Users\Default\NTUSER.dat”‘ -f $envSystemDrive) $bClickDefAction = [byte[]](0x25,0x00,0x53,0x00,0x79,0x00,0x73,0x00,0x74,0x00,0x65,0x00,0x6d,0x00,0x52,0x00,0x6f,0x00,0x6f,0x00,0x74,0x00,0x25,0x00,0x5c,0x00,0x53,0x00,0x79,0x00,0x73,0x00,0x74,0x00,0x65,0x00,0x6d,0x00,0x33,0x00,0x32,0x00,0x5c,0x00,0x72,0x00,0x75,0x00,0x6e,0x00,0x64,0x00,0x6c,0x00,0x6c,0x00,0x33,0x00,0x32,0x00,0x2e,0x00,0x65,0x00,0x78,0x00,0x65,0x00,0x00,0x00,0x63,0x00,0x66,0x00,0x67,0x00,0x6d,0x00,0x67,0x00,0x72,0x00,0x33,0x00,0x32,0x00,0x2e,0x00,0x64,0x00,0x6c,0x00,0x6c,0x00,0x2c,0x00,0x43,0x00,0x4d,0x00,0x5f,0x00,0x52,0x00,0x65,0x00,0x71,0x00,0x75,0x00,0x65,0x00,0x73,0x00,0x74,0x00,0x5f,0x00,0x45,0x00,0x6a,0x00,0x65,0x00,0x63,0x00,0x74,0x00,0x5f,0x00,0x50,0x00,0x43,0x00,0x00,0x00) Set-RegistryKey -Key ‘HKEY_LOCAL_MACHINE\ImportedHive\Control Panel\TabletPC\ButtonMaps\2’ -Name ‘ButtonID’ -Type ‘Dword’… Read More »

How can I easily see how long my Deployment Tasks take?

By | October 17, 2018
Share

I created a powershell script that outputs a chart displaying a breakdown on Deployment task durations. I tested it with MDT, but it should also work with SCCM. 1\Download the https://github.com/brianfgonzalez/Scripts/blob/master/ZTIDurations.ps1 script. 2\Add the .ps1 to your Deployment share’s script directory. 3\Add a call to the script on the top of your Task Sequence with… Read More »

Customize Windows 10 Installations: Part 1 – Using OSBuilder

By | September 24, 2018
Share

OSBuilder updates Windows 10 source files offline with the latest cumulative updates, installs the DotNet 3.5 feature, and strips Windows 10 built-in metro applications. 1\Install OSBuilder module via the Powershell Gallery. https://www.powershellgallery.com/packages/OSBuilder/18.9.21.0 2\Run Get-OSBuilder to pull in the servicing stack, cumalative updates. 3\Mount a Windows 10 ISO and run Import-OSMedia. This task will pull the… Read More »

Windows 10 apps I remove before running Sysprep

By | June 28, 2018
Share

** Updated on 2018/07/12 Here is are the powershell commands I run prior to running sysprep on Windows 1703/1709/1803.  Without running these commands, Sysprep typically fails.   get-appxpackage *getstarted* | remove-appxpackage get-appxpackage *photoshop* | remove-appxpackage get-appxpackage *freshpaint* | remove-appxpackage get-appxpackage *remotedesktop* | remove-appxpackage get-appxpackage *skype* | remove-appxpackage get-appxpackage *oneconnect* | remove-appxpackage get-appxpackage *maps* | remove-appxpackage… Read More »

Internet Explorer start tile not working with the PowerShell Import-StartLayout

By | March 26, 2018
Share

Here is a working configuration for importing a “Internet Explorer” tile to the Start screen using the Import-StartLayout PowerShell cmdlet.  This was tested on Win 10 1703. Here is my exported start layout.  I had to manually switch out the %APPDATA% variable with the %ALLUSERSPROFILE% to get it working. <LayoutModificationTemplate xmlns:defaultlayout=”http://schemas.microsoft.com/Start/2014/FullDefaultLayout” xmlns:start=”http://schemas.microsoft.com/Start/2014/StartLayout” Version=”1″ xmlns=”http://schemas.microsoft.com/Start/2014/LayoutModification”> <LayoutOptions StartTileGroupCellWidth=”6″… Read More »