Category Archives: Batch Files

FQDN of a Windows Server in Batch / CMD scripting….

Quick one for you (and there’s probably easier ways of doing this)…only took ten minutes to work it out tho. I needed to get the Fully Qualified Domain Name of a computer on the network into an environment variable in a batch script. Here’s the code snippet: @ECHO OFF FOR /f “tokens=2,* delims= ” %%a… Read More »

Unattended silent install of Microsoft WSE 3.0 (MSI)

I’ve been on a project where a number of prerequisites needed scripting and we’re provided in the MSI format. This is the Microsoft Installer format. There are a number of switches you can use which can streamline an application install. Problem was that the way our installing system operates here, the execution environment runs as… Read More »