Category Archives: Microsoft

All Microsoft Products (Exchange, SQL, Windows, Server)

Windows Check Disk

Growing up on Macintosh Computers (1988 was my first computer – a Macintosh SE with a whopping 8MHz, 9″ B&W screen, 20MB HD, and 1MB RAM), my knowledge of some very basic Windows operations is sometimes lacking. Moving from the Mac to a linux world probably didn’t help much either. Hey, at least I started to learn what IRQ’s were.

I had no idea how to use the DOS command prompts to do what I wanted. I was used to the linux style commands (who knew that dir was the same as ls?). I was also used to the fact that the Mac had no utilities to defrag, clean up, or otherwise alter data. The Mac just worked.

Windows, however, sometimes needs a gentle (read “harsh”) push to do what I want it to do. This is where my love of the command line and my necessity to Windows comes into play.

We all know that Windows 98 and ME forced you to run the Check Disk utility on startup if you shutdown the computer improperly. Probably a good 99% of the time I would bypass this check as I already knew the issue. That and I’m impatient.

So without further ado, here’s the command to run check disk:
Start >> Run >> CMD
chkdsk This will run Check Disk in read-only mode and will not repair any issues it finds
chkdsk C:/f This will run Check Disk in forced repair mode, but it will not check for bad sectors on the HD
chkdsk C:/r This will run Check Disk in repair mode, locate bad sectors, and recover readable information

With all that out of the way – I’m thinking about moving this site to a new one. The only problem with that is the fact that google has this site already cached for searching. We’ll think about it.

***EDIT***
chkdsk c: /f /r will do the same as both of the commands. This will scandisk your entire system – ie it’ll scan for bad sectors etc.

MCE Remote on XBMC

In case you haven’t noticed, I’m on an XBMC bender. I recently setup an older system as a file server, put a crap load of storage in it, and threw some movie ISOs on there. Then I installed XBMC on my main rig. The rest is history. I was fine with the wireless keyboard and mouse, but The Fiance says we must use a remote control.

My lucky day happened last week: woot had a woot-off AND they had some MCE remotes on sale. I bought two. They’re some crappy Pinnacle ones, but at newegg they run almost $40 and I got both with shipping for less than $35.

Trying to get it to work was another issue. Out of the box Vista will recognize this remote, but XBMC wouldn’t hear anything. Works great on Windows Media Center though. So I ended up trying a program called LMRemoteKeyMap. Pretty nifty, but I didn’t feel like learning all about xml, codes, remotes, and commands. I felt like being lazy.

So then I ended up with another program called IRServer Suite. Now this one worked out of the box. Every function works as advertised. The only change I made was to get the giant green button to act as the Windows key (so I can press start). Others have made it automatically open up XBMC, but for now I just wanted start to work.

Basically you’ll just open the Translator program and follow along to have it automatically do your work for you. See how lazy I’m being?

I might include some screen shots eventually.

Test SMTP Using Telnet

I’ve been using this more and more and have finally memorized most (if not all) of it. But this is for those of us who don’t really like to remember useless information.

Start -> Run -> CMD
telnet
open mail.mailserver.tld 25
At this point the server should respond with a 220 mail.mailserver.tld ESMTP Mail Service.
ehlo test.com
The server then should respond with 250 mail.mailserver.tld along with all the supported features of the mail server
mail from:tester@test.com
250 Sender OK
rcpt to: admin@test.com
At this point, the server should say 554 Relay access denied. This means your server is not an open relay.
rcpt to: actualemailaddress@mailserver.tld
250 Recipient OK
data
354 Start Mail input; end with CRLF.CRLF
subject: subjecthere
You’ll have to hit enter twice after the subject, then go on and type the body.
body here.
Note the . at the end – you’ll have to type a return and another . to finish.
Then there should be a server response 250 Queued mail for delivery. You can quit now.
quit

XBMC Keyboard Controls

Since my memory isn’t what it used to be (they say the memory is the first to go), I have decided to put down the keyboard controls for XBMC. This is for DVD playback. Long story short:
I have a server with a ton of ISO’s of movies
I have a decent computer hooked up to
A very nice HD TV via DVI-HDMI cables
XMBC allows me to play any movie I want, whenever I want.

x – stops the movie, returns to movie list
s – brings up shutdown window
p – pause / play
space bar – pause / play
r – rewind
f – fast forward
up arrow – next chapter
down arrow – previous chapter
right arrow – fast forward 30 seconds
left arrow – rewind 30 seconds
t – show title and real life time
i – info on data stream
o – status on chapter number and time
s – subtitles on/off
m – menu

Rip PAL DVD, Convert to NTSC

The people I work with always seem to find ways to make me think, search, and try. Although, as of late, it’s become quite hard to “stump the IT person”.

Guy came over and had a foreign movie that he wanted a duplicate created. Foreign to me is anything outside of the US of A. PAL happens to be outside the US of A. This DVD was created in the US of A, but then banned. So this copy was converted to PAL. I want it back!

Before I get too far into things, this is for WINDOWS OS COMPUTERS! I know there are plenty of Linux applications out there to do the same things (or at a minimum “very similar things”), but since I work on Windows machines all day, I decided to make it easy on everyone. You have a *nix post you want up here? Send it to me.

So basically you’ll need a few things (besides the obvious):
DVD Ripper – any should do, I use DVDFab though
VOB Blanker – free program
DVD Shrink – another free program

1. Rip the Movie (not to ISO format)
2. Open VOB Blanker, search for the IFO file
3. In the middle of the screen, find the chart with your VOB file listed
4. Right-click on the VOB file and select Video Attrib
5. In the window that opens up, select NTSC instead of PAL (or the opposite if you need PAL instead. Do the math)
6. On the bottom of the main window press the giant PROCESS!! button.
7. After about 10 minutes, your movie should be finished. Burn the movie – I used DVD Shrink to do this

It tested fine so far, and I’m not aware of any complications. Let me know if this doesn’t work for you.

Domain Controller Replication Failure

I have a client that has two domain controllers. When rebooting the PDC, we noticed that access to the Exchange server would stop. Traced the issue back to a GC not being found problem. Added the second DC to be a GC (it’s not recommended to have the Infrastructure Owner be a Global Catalog server, but with only 2 servers to play with…) so that the user systems would be able to use secondary DNS.

But then I noticed in the eventviewer that we were receiving an error:
Replication Failure: The reason is: The source server is currently rejecting replication requests.
Not good.
You can find out the exact error easier by going to Start >> Run >> replmon. Add your entire domain to the list, then expand out the servername. You’ll see red x’s on the non-replicating servers. Click on one of those red x’s to see the exact logs.

The fix:
In a command window, type:
repadmin /options SERVERNAME -DISABLE_INBOUND_REPL
repadmin /options SERVERNAME -DISABLE_OUTBOUND_REPL
The “-” is very important in this instance. It removes the restrictions. + would therefore add the restrictions.

Show Extended Status Messages Windows

I’m not a big fan of seeing the whole “windows is starting, please wait” crap that Microsoft makes me view upon startup. I like to know what’s really going on. Is it initializing something? Is it hung up? Am I wearing pants?

Well, that last part I can figure out on my own easy enough. And now I can figure out the first two as well. This requires the use of the trusty regedit application. Don’t make changes unless you know what you’re doing (or trust a guy who can tell if he is or is not wearing pants).

1.) Start >> Run >> Regedit
2.) Navigate to:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system
3.) Add the following DWORD Key:
VerboseStatus
4.) Make sure the value of the DWORD is set to “1” (obviously no quotes)
5.) Reboot