Tag: VBScript
-
Script to Detect if Running from SCCM Task Sequence and Avoid False Positives
Overview This post shows how a script can detect if it is running from inside an SCCM 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 an SCCM Task Sequence so it can alter its behaviour accordingly. The most…
-
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…