Tag Archives: PowerShell

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 »

PowerShell Script to Query Wireless Modem and pull Asset Information.

By | February 3, 2014
Share

Pulling a Wireless WAN Modem’s information while in the field is a daunting task. Here is a script to pull this information using AT commands with in a PowerShell script. The script was tested on a CF-53J Toughbook laptop with an embedded Sierra 7750 (Verizon LTE) modem. The script displays methods of capturing the information… Read More »

My Search and Apply .WIM Image files script with recovery partition creation.

By | September 25, 2013
Share

Once powershell was supported in WinPE, I converted my .VBS search and apply script over.  I add this script into my startnet.cmd, so it is started after initializing WinPE. Here are the steps of the script: Prompts the user asking them to verify that they want to run recovery. Prompts for recovery password if “$sRecoveryPassword”… Read More »

MS page that lists all of the Powershell commands that replaced VBS script (Shell Scripting)

By | January 7, 2013
Share

http://technet.microsoft.com/en-us/library/hh848796.aspx Due to how busy I constantly am, a majority, if not all, of my scripting is still done in VBS code. Its simply easier to just whip together a VBS script using PrimalScript than learning the proper way to write and execute the powershell script. With SCCM2012 and MDT2012 supporting PS scripts out-of-the-box, there… Read More »