Category Archives: Batch Files

Don’t Use WScript To Launch Batch Files

I had a customer who was rolling out a new Anti-Virus product across tens of thousands of machines via the classic deployment tool ZenWorks 7. However the deployment success was quite low, around 80% success rate. Initial diagnostics by support … Continue reading

Posted in Batch Files, ProcExp, SysInternals | Tagged | 1 Comment

How To Make ProcMon Circular Log to Nail Intermittent Issues

OK I love ProcMon. But leaving it to run the whole day to capture that bizarre random event that you just can’t figure out what causes it is probably not a good idea. Massive ProcMon logs can get very hard … Continue reading

Posted in Batch Files, ProcMon | Tagged | 4 Comments

Make Batch Files Run from Network Shares Execute More Quickly

Batch files are read a line at a time, so if over a slow network file, and the batch file is long or using for loops it can take ages to execute. Put this at the beginning of your batch … Continue reading

Posted in Batch Files | Leave a comment

Calculate How Long It Takes To Run A Batch File

Sometimes you might want to calcaulte how many hours/minutes/seconds a batch file takes to run. Use this code to do so. Put your own code inside the ‘code to benachmark goes here’ section. @echo off REM TimeDiff – batch file … Continue reading

Posted in Batch Files, Command Line | 1 Comment

Case Of The Outlook Attachment Open Fail

When trying to playback a voice mail message from Outlook a user received the following message This file cannot be previewed because of an error with the following previewer: Windows Media Player Rich Preview Handler Attempting to double click the … Continue reading

Posted in Batch Files, Command Line, Office, Windows 7 | Tagged | 4 Comments

Using SMB sniffing to determine target’s host name, domain, OS version, system time and time zone

Once again needed an alternative method to “verify” a massive list of computers : 1) The machines existed on the network 2) that DNS was resolving to the actual machine on the list. i.e. when verifying machine name “PC-1234” I … Continue reading

Posted in Batch Files, Network, NMap, Scripting | Tagged | Leave a comment

Ping A List Of Computers and Double Check DNS name against NetBios name

I’ve seen in the past where environments use Dynamic DNS to update clients, where due to bad configuration the DNS on clients gets out of whack, especially if many users moving sites/or PCs replaced. In any case if you have … Continue reading

Posted in Batch Files, Network | Tagged | 7 Comments