Archive for the ‘Work’ Category.

gpresult – Access Denied

While trying to make sure a GPO got applied on a Windows 2003 Server, I tried to run gpresult. I got “Access Denied.”
Continue reading ‘gpresult – Access Denied’ »

SSH Public and Private Key setup on OS-X

I didn’t find one clear and concise place explaining how to setup private keys on OS-X. This is my attempt to remedy that.
Continue reading ‘SSH Public and Private Key setup on OS-X’ »

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