Category Archives: PowerShell

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 »

MDT 2013 offers an astounding 37,403 lines of code for free.

By | October 28, 2013
Share

I took a couple of minutes out Today to pull the amount of code is offered for free by implementing MDT 2013 from Micosoft.  Here is the powershell I wrote up for querying up the number: Get-ChildItem -Path C:\HydrationCM2012R2\DS\Scripts\ -Recurse | ` Where-Object {$_.Extension -eq “.WSF” -or $_.Extension -eq “.VBS”} | ` foreach{(Get-Content $_.FullName).Count} |… 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 »

Powershell Post to Auto-Import all .REG files from Current Directory (Script Directory)

By | May 30, 2013
Share

Here is a script/package that I like to include when consulting. It simply auto-imports all .reg files from the same directory where the script is stored. Its great, because people can simply export .reg files and add them into the folder and the next time a deployment takes place, the .reg file is imported. #Grab… Read More »

Deployment Share Powershell script built for MDT2010 still works for 2012..

By | May 28, 2013
Share

Sorting Deployment Share still only available outside of MMC. Thanks to its creator, the 2010 Powershell script still works in 2012 SP1. Thanks MN! /BrianG