I found myself in a situation recently where I was working in a Windows environment and needed to locate the SYSTEM user’s home directory.  This can be useful to know for a variety of reasons.  For example when working with SCCM, SYSTEM is the account that is used when installing applications for all users using […]

I have sometimes found myself in situations where I need to edit the Windows registry of an OS that I am not booted from (maybe the operating system won’t boot/is corrupted/needs to be changed without being booted to).  It is possible to load up OS registry hives from any environment that can run Regedit, such […]

Obtaining the administrators from a remote computer can be tricky, especially if you are connected to a large Active Directory domain.  Many solutions I’ve seen for this end up looping through all the users on the entire domain.  My environment has nearly a quarter million AD users, so that’s just not feasible. Scripting the following […]

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

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

If you are unable to see an application in the list to select when setting up the Install Application step in an SCCM 2012 task sequence, there are two common reasons why. #1 – Application is not set as allowed to install Each SCCM application has an explicit setting that allows it to be used during task […]

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