Category Archives: PowerShell

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

My edits for PSAppDeployToolkit’s Wrapper PS1

By | August 10, 2016
Share

http://psappdeploytoolkit.com/ ‘s wrapper is my new favorite wrapper for applications I add to MDT or SCCM.  As Johan & others have stated, the main reason to use wrappers is how mush it eases testing of creating packages.  Here are my 2 edits I make to all of my Deploy_Application.ps1 scripts. 1.Tell PSAppDeploy to copy the… Read More »

How can I present a dynamic OU Selection prompt for MDT/SCCM?

By | December 18, 2014
Share

First thing you will need to installf Maik Koster’s “Deployment Webservice“. This will give you the ability to do cool stuff like query AD for a list of OUs, or move computers around to different OUs, and add/remove computers from SCCM collections. Any many other actions similar to that. Once you have it installed and… Read More »

My MDT PowerShell Template

By | March 17, 2014
Share

I’ve recently come to really appreciate PowerShell as the most versatile and powerful language available natively in any/all Windows OS. i.e. 2 lines of code to ensure laptop battery is plugged in and prompt the user. If ((Get-WmiObject -Query “SELECT * From Win32_Battery”).BatteryStatus -ne 2) { Write-Host “Please plug in your laptop” } An equivalent… Read More »