Category CMD

Microsoft Visual C++ Redistributables MSI Product Codes

Microsoft makes deploying Visual C++ fairly easy with their plethora of redistributables, but sometimes it can be difficult to detect if a particular Visual C++ version is installed. Below are the MSI Product codes that relate to each release.  This information is particularly helpful when using deployment software such as SCCM. Visual C++ 2005 Redistributable […]

Parse CMD Output into Variables for OS Version & Bit Version

I was recently in need of getting a Windows operating system and bit version from command line.  I needed to store this data into variables that I could reference later in a batch script. In Windows CMD, it’s not so straightforward to store or pipe the results of a command into into a variable.  For […]

Use Quser To View Which Accounts Are Logged In & Remoted In to a Computer

When restarting a Windows server or computer, you may receive a warning message that other users are still using the computer: So how can you find out who this “someone else” is? Quser (query user) is a built-in Windows command line tool that is particularly useful when needing to identify active user sessions on a computer.  This feature exists […]

Run Multiple Commands from a Single Run Command Line Task in an SCCM 2012 Task Sequence

When building an SCCM 2012 task sequence, a Run Command Line task can be added to execute CMDs: When needing to run multiple commands, adding a separate Run Command Line tasks for each command will work.  But sometimes combining multiple commands into a single step will be more efficient. The & Operator Multiple commands can be ran […]

Fix TABE Online Assessment Install Error “Windows error 2 occured while loading the Java VM”

The organization I work with utilizes CTB’s TABE Online Assessment tool in conjunction with some of our McGraw-Hill services.  I recently ran into a problem while attempting to install TABE that resulted in the following LaunchAnywhere error: Windows error 2 occured while loading the Java VM (yes, I realize “occurred” is misspelled in their error […]

Run an Offline SFC Scan

A System File Checker is an extremely useful tool that will scan all protected Windows system files and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache.  This is useful for fixing a large variety of problems, especially when dealing with Windows boot issues. An SFC scan is generally ran directly […]

Manually Set Date & Time to Fix SCCM Task Sequence Error 80004005

I occasionally run into a 80004005 error when working with SCCM operating system deployment task sequences.  The error generally displays immediately after putting in the password for the bootable media/PXE boot, and the smsts.log appears similar to the following: The issue here is that the date and time on the client are incorrect.  This problem can be […]