Tag Archives: Microsoft

Unable to assign D: on Windows Server

I recently had a minor issue trying to assign a drive letter to a newly attached drive. Technically is was a Virtual Disk under XenServer but that’s mostly irrelevant.

The symptoms were that under “Disk Management” I could see the new drive, create a partition and correctly format it as NTFS. However when I tried to assign it a drive letter I could see all the letters of the Alphabet except C, Z and the letter I wanted D. The C and Z missing were expected as there was a System disk and a DVD drive assigned to the VM. A check of Device Manager confirmed that there was no additional disks or CD/DVD dives assigned to the server.

I dropped to dos and ran ‘net use‘ to check if there were somehow so network drives mapped that I didn’t know about (there wasn’t) and I also ran ‘subst‘ to make sure there was no drive substitution going on, subst indicated that there was no drive substitutions so I was stumped.

I dug into the registry and check HKLM\System\MountedDevices and saw like everywhere else only C and Z in use under DosDevices. I thought I’ll try and map a network drive and see what that yields, oddly enough D: did show as an available letter but when I tried to map to D: though it failed, and it could map correctly to another letter so permissions were fine.

About this time I remembered one of the other guys was talking about needing to create a subst drive for something he was testing, so I checked with him and sure enough he’d created a substituted drive the day before. Knowing this the fix was then simple. We logged onto his account and sure enough there was a subst drive, we removed it and bingo we could now assign the New disk the drive letter D:.

What was interesting  though is even as an administrator I couldn’t see this drive letter in use on another account, NET USE equivalent apparently also thought it wasn’t in use, but was kind of still in use, and most tellingly even under the HKLM (Local machine not HKCU) it didn’t show in MappedDrives.

I can also find no reference of this behaviour anywhere on Microsoft’s site or anywhere else on the web. It’s possible it’s a bug or was some other weird/unexpected behaviour but I don’t really feel like opening a Microsoft case to confirm it I just wanted my disk appearing in Windows

Peculiarity rewriting HTTPS in IIS8

Playing with rewrite rules in IIS8 and trying to get it to redirect http request to https, I found that if you have the “require SSL” tickbox selected it will not process your https rewrite rules.

SSL Settings

For reference here’s the rule which worked perfectly once I disabled the require SSL setting.

Rewrite Rule

Or in an easier to copy format here’s the web.config file

Note: It probably exhibits the same behaviour in IIS7 and earlier, I just never bothered to test those, I was only using IIS8.
Here’s the link to IIS rewrite as well for those interested

Microsoft Bluetooth 5000 Notebook Mouse

As I’ve blogged previously I recently purchased a new Dell Laptop for work. I’m not a big fan of the trackpad on any laptop so the first thing I threw into the laptop bag was a wireless mouse I had lying around. After a day of using it however I wasn’t happy with it as a solution. There were several times I nearly snapped of the little dongle thingy, plus the inconvenience of losing a USB port when you only have two made me think there must be another solution.

Continue reading Microsoft Bluetooth 5000 Notebook Mouse

Microsoft Exchange 2003 and Outlook Mobile Access

Microsoft has come a long way from the bad old days of Windows 95 and blue screens of death. Recently I had to add a new domain controller to a domain, rename that domain, create a new Exchange server and migrate all the users mailboxes to that new server. All in the space of a few days because the old hardware was crashing constantly and nobody was quite sure how long the hardware would last.

Continue reading Microsoft Exchange 2003 and Outlook Mobile Access