Tag: VBScript
-
Script to Detect if Running from ConfigMgr Task Sequence and Avoid False Positives
Overview This post shows how a script can detect if it is running from inside a Microsoft Configuration Manager Task Sequence in a way that avoids false positives. The Problem At times it’s useful for a script to detect if it is running from a ConfigMgr Task Sequence so it can alter its behaviour accordingly.…
-
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…