Category Archives: PowerShell

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 »

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 »