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