Archive for the ‘Work’ Category.

Easy way to ping a range of IP Addresses

nmap -sP 10.1.1.0/24

When I need to find an open IP, this is a decent way to do it. I wish there were a way to find IPs that don’t respond, but this works for now. This won’t work if your network bans ICMP traffic, or your host doesn’t respond, but is alive.

If Windows 2000 Add/Remove programs doesn’t open

From a command window run…

regsvr32 mshtml.dll
regsvr32 shdocvw.dll -i
regsvr32 shell32.dll -i

After each command, you’ll get a pop-up window saying “xxx was registered”
I support a lot of W2K boxes :(

Some quick SQL tips for myself

osql -E- Login with your Windows credential

to change your authentication mode to Mixed Mode (meaning you can use both local password such as sa, and Windows Credentials), change…

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\LoginMode from 1 (default) to 2(mixed).

Now that you have mixed, mode you can change the sa password..

osql -E

sp_password NULL,”<new-password>”,sa

go

Add a second e-mail account to outlook 2007

Tools -> Account Settings

Under the e-mail tab select “microsoft exchange” and click change

More settings - advanced tab

click add - add the name of the new mailbox.

Excessive memory usage in services.exe in windows 2003

I had an SE contact me about services.exe using excessive memory on some of his boxes (~130MB.) As he was worried about this (and he had a ticket), so was I. I started with the semi-handy Process Explorer from Microsoft. I’ve been spoiled by the nifty things you can do with UNIX (lsof for instance), but I couldn’t get to the bottom of what was taking up so much memory. After 90 minutes on the phone with Microsoft Platinum support, it appears that (drum roll please) the event logs were taking up the memory. We backed up and then cleared the event logs, and the memory went down to a more manageable, and expected, size (~8MB.) Apparently, the event logs are cached on startup (and kept in memory as they grow?). However, this isn’t that big of a deal as services.exe is one of the first processes that gives back memory to a memory constrained system

The support guy from Microsoft went away for a few minutes and found this out from talking to one of his peers. I’m no closer to figuring out how to troubleshoot memory processes on a deeper level. His only suggestion was to get a crash dump from the server and run windbg against it. On a Linux box, you can just run lsof, or dtrace or… well, you get the idea.

A fix for multiple Symantec AntiVirus x64 clients not updating correctly

We had a major issue where Symantec Anti-Virus would not update some (but not all) 64 bit clients. To make a long story short, it ended up being corrupt files that had previously been downloaded by Live Update, and lived in the LiveUpdate directory on the server. To clear up the problem we had to…

Continue reading ‘A fix for multiple Symantec AntiVirus x64 clients not updating correctly’ »

Symantec AV CE 10 x64 Live Update debug mode

To turn it on, change the key of Debug to REG_SZ of “all”. Make the field empty to turn it off. The key lives in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Intel\LANDesk\VirusProtect6\CurrentVersion\ProductControl

This will create the text file C:\Program Files (x86)\Symantec AntiVirus\vpdebug.log. When you start Live Update, a dos window will pop up.  After you run Live Update, change the key from all to null (leaving an empty key.)