Category: Scripting
-
AutoIt Cmdlets for Windows PowerShell
Overview The newest versions of the AutoIt scripting language now come with a bonus for PowerShell users. A set of native PowerShell Cmdlets! This allows you to add the unique features of AutoIt – window manipulation and keystroke simulation – to your usual PowerShell scripts. As an additional bonus, the AutoIt PowerShell Cmdlets and Assemblies…
-
Get the Current Script Directory in PowerShell, VBScript and Batch
Overview This post shows how to quickly get the current script directory using PowerShell, VBScript and Batch – the most commonly used scripting languages for Windows. The scripts I write usually read in other files or call other scripts. In order for these scripts to run from any location – such as a UNC path…
-
Mass Redistribute Packages in ConfigMgr 2012
Overview Recently I came across an issue with System Center Configuration Manager (ConfigMgr) 2012 where a large number of packages and applications had failed to be distributed to a new Distribution Point (DP). There were many thousands of packages in the environment and a few hundred were showing in the error state in the console.…
-
Detect an SSD Disk Using a Script
Overview A common request when creating automated desktop builds or custom maintenance tools is the ability detect if the main system drive is an SSD disk or not. This information can be used to configure a system in a particular way. For example, to run (or not run) certain maintenance tasks or to optimally configure…