Microsoft Website Spark!


Microsoft WebsiteSpark ignites success in the Web business by helping Web Pros to drive new business opportunities through connections with partners and customers around the world. WebsiteSpark also provides Web Pros with Microsoft software and solutions, as well as support and training opportunities. Through their participation in WebsiteSpark, Network Partners can grow their own business and customer base by gaining exposure as a Microsoft partner and participating in an ecosystem that includes not only Web developers and designers, but also their customers.

Please visit www.microsoft.com/web/websitespark. Microsoft will also have a local launch of this campaign on February 19, 9 A.M – 5 P.M, 16th floor Microsoft Office for web pros. We will be inviting 100 web pros. If you know any web developer or designer whom you think should attend the event, you can send their contact information to Alezandra and Mellie.

The first local edition of MSDN Flash is targeted to be released on February 9. Please visit msdnphilippines.net for details.

Improving Disk Access times with DiskPart


Wnile reviewing for the next exchange certification exam, i came across something that I did not know– improving disk access via DiskPart

Disk performance may be slower than expected when you use multiple disks in Microsoft Windows Server 2003, in Microsoft Windows XP, and in Microsoft Windows 2000. For example, performance may slow when you use a hardware-based redundant array of independent disks (RAID) or a software-based RAID.

With a physical disk that maintains 64 sectors per track, Windows always creates the partition starting at the sixty-forth sector, therefore misaligning it with the underlying physical disk. To be certain of disk alignment, use Diskpart.exe, a disk partition tool. Diskpart.exe is a utility provided by Microsoft in the Windows Server 2003 Service Pack 1 Support Tools that can explicitly set the starting offset in the master boot record (MBR). By setting the starting offset, you can track alignment and improve disk performance

Checkout http://technet.microsoft.com/en-us/library/aa995867(EXCHG.65).aspx
To calculate the settings check out http://support.microsoft.com/kb/929491

As an update, this is no longer an issue with Windows 2008. You can use the graphical user interface to format the new disks.

Recovering from HyperV failure


It finally happened. A virtual machine refused to startup. It has unknown boot errors. So we just delete the VM and recreate it using the base VHD that it had. All the snampesots (avhd files) were intact. So a google search shows:

Microsoft MVP Brian’s IT Proctology blog with the following data:

You manually merge your snapshots into your base VHD before you boot your VM. (I am assuming that you know how to connect to an existing VHD using the new VM wizard).
Merging of snapshots can be performed manually. This is achieved by:
On your Hyper-V host.Power off the Virtual Machine.
Make a copy of the VHD and its corresponding AVHD files.
Rename the AVHD extension to VHD.
Write down the order of the disks from youngest to oldest (the oldest should be the root VHD). You can do this by looking at the last modified time stamp on the origional AVHD files, find the one that last changed. And find the last one that changed before it.
In the Hyper-V manager, open the Edit Disk wizardBrowse to the youngest VHD in the chain, then choose ‘reconnect’ to point to the next youngest (the one that came before).
Open the Edit Disk wizard a second time and merge.
Then repeat the process until you have only a single VHD.
In a disaster case, you need to recover a copy of the root VHD prior to attaching it to a new VM and booting it (the act of booting it, modifies it)
Usually the most difficult part of this process is finding the last AVHD (differencing disk) in the chain.
The easiest way to do this is to find the configuration file for the VM.

Virtual Server 2005 R2 SP1 includes a tool called VHDmount that allows you to mount a virtual hard disk (which in fact is a .VHD file) directly on your host operating system. VHDMount is provided as a command line tool. You can perform various tasks by either running it directly from the Command Line, or by using simple batch files that do what you need to do. Some of the capabilities of VHDMount are:

/p – Plugs in the specified VHD as a virtual disk device without mounting the volume.

/m – Plugs in the specified VHD as a virtual disk device and mounts the volume.

/f – Performs the specified operation without creating an Undo Disk. This parameter is applicable for /p and /m. All changes to the mounted disk are directly written to the specified VHD.

/u – Unplugs the virtual disk device for the specified VHDFileName.

/c – Updates the original VHD with all changes that were stored in the Undo Disk anddeletes the Undo Disk after unplugging the disk. This parameter is only applicable if the VHD was mounted without using /f.

/d – Discards all changes to the mounted disk and deletes the Undo Disk after unplugging the disk. This parameter is only applicable if the VHD was mounted without using /f.

/q – Displays the disk name of the mounted virtual disk device for the specified VHDFileName.

VHDFileName – VHD name including full path.

DriveLetter – Optional parameter for /m option. If drive letter is specified the volumes are mounted starting at the specified drive letter. If drive letter is not specifiedit is automatically assigned.

All – Applies the operation on all mounted virtual disk devices. This parameter is applicable for /u and /q.

By default, VHDMount creates an Undo Disk in current user’s temporary folder. All changes to the mounted disk are written to this Undo Disk. Use /c to commit or /d to discard these changes at the time of unplugging the disk device. Use /f option to mount a VHD without an Undo Disk.

Examples:
VHDMOUNT /p [/f] VHDFileName
VHDMOUNT /m [/f] VHDFileName [DriveLetter]
VHDMOUNT /u [/c | /d] VHDFileName | All
VHDMOUNT /q VHDFileName | All

A huge thanks to you Brian. However, in my case, there was some read errors in the avhd files. So i decided to use the VHDmount tool instead as outlined in Petri knowledge base:

The idea is that if i can access the files in the vhd (or the renamed avhd file), then i should be able to copy the files (sql backup) needed to update my installation!
I havent done this yet, so at this writing, I am still going to find out soon :)

Update: I finally figured out where what we were doing wrong. I started from the oldest instead of starting from the newest snapshot, and going backwards to the NEXT oldest snapshot.
When the wizard asks for ‘parent’ to connect to, just use the next oldest snapshot. It is typically also listed in the wizard :)

Windows 7 Black Screen


I just got word from Microsoft that the supposed patch that causes Windows 7 Black Screen is bogus and inaccurate.

* Microsoft has found these reports to be inaccurate. Comprehensive investigation has shown that none of the recently released updates are related to the behavior described in the reports. Microsoft’s support organization is also not seeing this as an issue. The claims also do not match any known issues that have been documented in our security bulletins.

On December 1, Prevx, the company which issued the report, posted an apology to Microsoft which stated the following:

“Since more specifically narrowing down the cause we have been able to exonerate these patches from being a contributory factor.”

According to Microsoft’s blog post , the real culprit is a piece of malware that clears desktops and produces a black screen on infected PCs; various security vendors have tools for removing this malware. There is no fix or update necessary for this, but customers should keep their anti-virus software up-to-date as a preventative measure. So far, Microsoft is not seeing a massive occurrence of this particular issue in our support channels. If customers do encounter an issue with a security update, contact our Customer Service and Support group for no-charge assistance at http://support.microsoft.com/security.

Windows FTP Firewall Settings


Ever get problems with listing the FTP directories after a successful login? Ever have it hang on you? I found the solution to this problem and a great explanation as well on this site: http://learn.iis.net/page.aspx/309/configuring-ftp-firewall-settings/

In essense, in my case, it was a firewall problem. It wasnt enough to just allow the FTP port 21 to be open. YOu had to :

Enable stateful FTP filtering that will dynamically open ports for data connections, type the following syntax then hit enter:
netsh advfirewall set global StatefulFtp enable