The GatherNetworkinfo.vbs Script

I recently read the whitepaper“Using Windows Script Host and COM to Hack Windows” that is mentioning the GatherNetworkinfo.vbs script I hadn’t paid attention to yet. The gathernetworkinfo.vbs script comes by default with every Windows 7 installation and is located within the C:\Windows\System32\ folder. The script does collect various networking information about the Windows 7 system and its configuration and dumps the information into the C:\Windows\System32\Config folder. On a system where the script hasn’t been executed Read More …

Retrieve Windows Boot Time Script

Here’s a small batch script to get the Windows 7 Boot time shown in milliseconds. @echo off FOR /F "Tokens=4" %%a IN (‘%windir%\system32\wevtutil.exe qe Microsoft-Windows-Diagnostics-Performance/Operational /rd:true /f:Text /c:1 /q:"*[System[(EventID = 100)]]"  /e:Events ^| FIND "Duration"’) DO SET BTIME=%%a ECHO Boot Time is : %BTIME% Inspiration for this script came from the article Monitor System Startup Performance in Windows 7 written by Sean Wheeler for WindowsITPro.

Extract Path with spaces from Registry value

I’ve been browsing through the Microsoft TechNet Forums to see whether I can learn something new or maybe give someone a helping hand. Now before I am going to show the solution I gave someone, let me first tell you this. It was just before having diner that I read the question and already thought of a possible solution, but then it was time for diner, moving away from my laptop I thought it looks Read More …

Mute Windows System Volume

I came across a forum post where someone asked how to programmatically mute the Windows System volume. So this is what I have found: NirCmd NirCmd from NirSoft is a small command-line utility that contains many smart functions like muting and unmuting the system volume. To mute the system volume, simply run the following command nircmd.exe mutesysvolume 1 and to unmute you run nircmd.exe mutesysvolume 0 With VBScript Another option is to use a VBscript, Read More …

Automated Microsoft Security Essentials Installation

For all those that frequently setup test machines and get tired of manually installing the Microsoft Security Essentials 2.0, here’s a straight forward batch file (even a regular user could use) that does the following: Downloads the Microsoft Security Essential 2.0 (x86) installation source file Installs Microsoft Security Essentials 2.0 Downloads and updates the virus definition signature file   [sourcecode language=”plain”] @ECHO OFF Echo Downloading Microsoft Security Essentials 2.0 (x86) start /wait bitsadmin /TRANSFER MSE20 Read More …

ToolTip: SMB BranchCache deployment Diagnosis script

Just found this SMB BranchCache deployment diagnosis script on MSDN Code Gallery. The Test-SMBBranchCache script is used to find common SMB BranchCache misconfiguration issues. It allows a user to verify the SMB BranchCache server or client configuration. When run on a server, it can test the state of a BranchCache-enabled network share. When run on a client, it can do an end-to-end validation of the SMB BranchCache functionality. Download documentation and diagnosis script from here

Fix it automates steps described in Microsoft KB articles

Usually when you read a Microsoft Knowledge Base article you find a detailed description on how to solve a particular problem. In some KB articles you will find the following picture This indicates that the “Fix it Team” has provided a script / package to automate the system modifications required to fix the problem or change the system behavior. The fix it team has their own “fix it for me blog” where they list the Read More …

Using BITS for file downloads

Today I have come across the topic BITS which stands for Binary Intelligent Transfer Service which is a file transfer technology that is included in Windows XP, Windows Server 2003 and Windows Vista. What is nice about BITS is that it provides Checkpoint recovery and network throttling. This means that when a download is being interrupted because the remote site became temporarily unavailable or you had shut down your client, BITS will automatically resume the Read More …