Category CMD

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 […]

Bypass Execution Policy When Running PowerShell Scripts

PowerShell scripts are slowly creeping in as the new standard to replace older batch and VB scripts.  PowerShell is extremely powerful and is therefore advantageous in both SCCM applications and packages that I am required to create. Using PowerShell scripts does present a slight problem: Windows computers are, by default, not set to allow PowerShell scripts to run.  There is […]

Use a Batch Script to Remotely Delete Windows.old Folder

Once an in-place upgrade of Windows is performed on a machine, a Windows.old folder will be created on the root of the OS drive.  This folder contains a backup of old data prior to the upgrade, including program files, Windows files, and AppData.  In the case of the update being reverted, Windows will resort back to […]