Windows7

O Estranho Caso Do Computador Que Acordava Sozinho Misteriosamente

Normalmente, quando eu vou dormir, também ponho o meu computador a dormir.

Mas, desde há alguns meses, o computador acordava sozinho e eu não conseguia percber porquê.

Com a ajuda do Pete consegui perceber porquê:

C:\>PowerCfg -LASTWAKE
Wake History Count - 1
Wake History [0]
  Wake Source Count - 1
  Wake Source [0]
    Type: Wake Timer
    Owner: [PROCESS] \Device\HarddiskVolume2\Windows\System32\services.exe
    Owner Supplied Reason: Windows will execute '\Microsoft\Windows\Media Center\mcupdate_scheduled' scheduled task that requested waking the computer.

Usando PowerCfg –LASTWAKE é possível saber o que acordou o computador da última vez que este acordou.

Afinal era apenas uma tarefa agendada do Media Center que acordava o meu computador.

The Strange Case Of The Mysterious Self Awaking Computer

Usually, when I go to sleep, I also put my desktop computer to sleep.

But, for the last couple of months, the computer would always wake up by itself and I couldn’t figure out why.

With the help of Pete I was able to find out:

C:\>PowerCfg -LASTWAKE
Wake History Count - 1
Wake History [0]
  Wake Source Count - 1
  Wake Source [0]
    Type: Wake Timer
    Owner: [PROCESS] \Device\HarddiskVolume2\Windows\System32\services.exe
    Owner Supplied Reason: Windows will execute '\Microsoft\Windows\Media Center\mcupdate_scheduled' scheduled task that requested waking the computer.

Using PowerCfg –LASTWAKE it is possible to know what woke up the computer the last time it woke up.

It turns out that it was a Media Center scheduled task that was waking up my computer.

Fixing Windows Virtual PC Missing “Create Virtual Machine” Folder Option

Some of my Windows 7 systems, after installing Windows Virtual PC, were missing the Create virtual machine option.

Bob Comer directed me to this post from the Virtual PC Guy's Blog but, before trying the recipes in the post (which involved logging out or restarting the system), I simply tried the Reset Folders option in the View tab of the Folder Options. And it immediately solved the problem.

So, if you are having this same problem, you might want to try this simple solution first.

In the end, just in case, I also added start menu shortcuts to:

  • Windows Virtual PC Wizard

    %SystemRoot%\System32\VPCWizard.exe

  • Windows Virtual PC Settings

    %SystemRoot%\System32\VPCSettings.exe

Is Your ASP.NET Development Server Not Working?

Since Visual Studio 2005, Visual Studio comes with a development web server: the ASP.NET Development Server.

I’ve been using this web server for simple test projects since than with Visual Studio 2005 and Visual Studio 2008 in Windows XP Professional on my work laptop and Windows XP Professional, Windows Vista 64bit Ultimate and Windows 7 64bit Ultimate at my home desktop without any problems (apart the known custom identity problem, that is).

When I received my new work laptop, I installed Windows Vista 64bit Enterprise and Visual Studio 2008 and, for my surprise, the ASP.NET Development Server wasn’t working.

I started looking for differences between the laptop environment and the desktop environment and the most notorious differences were:

System

Laptop

Desktop

SKU

Windows Vista 64bit Enterprise

Windows Vista 64bit Ultimate

Joined to a Domain

Yes

No

Anti-Virus

McAffe

ESET

After asserting that no domain policies were being applied to my laptop and domain user and nothing was being logged by the ant-virus, my suspicions turned to the fact that the laptop was running an Enterprise SKU and the desktop was running an Ultimate SKU. After having problems with other applications I was sure that problem was the Enterprise SKU, but never found a solution to the problem. Because I wasn’t doing any web development at the time, I left it alone.

After upgrading to Windows 7, the problem persisted but, because I wasn’t doing any web development at the time, once again, I left it alone.

Now that I installed Visual Studio 2010 I had to solve this. After searching around forums and blogs that either didn’t offer an answer or offered very complicated workarounds that, sometimes, involved messing with the registry, I came to the conclusion that the solution is, in fact, very simple.

When Windows Vista is installed, hosts file, according to this contains this definition:

127.0.0.1       localhost
::1             localhost

This was not what I had on my laptop hosts file. What I had was this:

#127.0.0.1       localhost
#::1             localhost

I might have changed it myself, but from the amount of people that I found complaining about this problem on Windows Vista, this was probably the way it was.

The installation of Windows 7 leaves the hosts file like this:

#127.0.0.1       localhost
#::1             localhost

And although the ASP.NET Development Server works fine on Windows 7 64bit Ultimate, on Windows 7 64bit Enterprise it needs to be change to this:

127.0.0.1       localhost
::1             localhost

And I suspect it’s the same with Windows Vista 64bit Enterprise.

From Vista To 7 With WET And WHS

My son inherits my old machines.

His current one was a machine that started with Windows Vista x86 Ultimate RTM, then SP1 and finally SP2. Also, along the way, several versions of Microsoft Office, .NET, Visual Studio, SQL Server and much more.

I usually have dozens of applications installed. Retrieving license keys and installing them a gain is such an hassle that I choose to upgrade whenever I can.

Now that Windows 7 is out and there’s a beta of Office 2010, my son wanted to upgrade the machine.

Because the machine had already gone through all those updates and he didn’t like the way I had partitioned the disk, I recommended him to format the disk and do a clean install.

One of the hassles of a clean install is that you loose all your settings such as Internet Explorer settings and favorites and Microsoft Outlook accounts and PSTs (specially if you have IMAP accounts).

Since I had already successfully used Windows Easy Transfer to migrate my work laptop from Windows XP (x86) to Windows Vista x64 Enterprise, I told him not to worry.

Windows Easy Transfer guides you through the process of transferring files and settings from one Windows installation to another.

With Windows Easy Transfer you can transfer:

  • Files and folders.
    Everything within the Documents, Pictures, and Shared Documents folders. Using advanced options, you can select additional files and folders to transfer.
  • E‑mail settings, contacts, and messages.
    Messages, account settings, and address books from Microsoft Outlook Express, Outlook, Windows Mail, and other e‑mail programs.
  • Program settings.
    Settings that keep your programs configured as you had them on your old installation. You must first install the programs on your new computer, because Windows Easy Transfer does not transfer the programs themselves. Some programs might not work on this version of Windows, including security programs, antivirus programs, firewall programs (your new computer should already have a firewall running to help ensure safety during the transfer), and programs with software drivers.
  • User accounts and settings.
    Color schemes, desktop backgrounds, network connections, screen savers, fonts, Start menu options, taskbar options, folders, specific files, network printers and drives, and accessibility options.
  • Internet settings and favorites.
    Internet connection settings, favorites, and cookies.
  • Music.
    Electronic music files, playlists, and album art.
  • Pictures and video.
    Pictures—which includes any visual file type (for example, .jpg, .bmp, .gif) - and personal videos.

After saving everything to the .MIG file, all it took was installing Windows 7, Office 2010 and import the settings back.

To get the other files and folders that were on the disk before being formatted, since we have a Windows Home Server that backs up all the PCs in the house , all it was needed was mounting one of the old backups as a disk and copying the files back.

It’s so easy that he did it al by himself while and he just turned 14. So, if you need to do something like this, don’t stress. It’s that easy.

Getting The Folder Path Into The Windows Search Results Windows

Unlike it happened on Windows XP, on Windows Vista and Windows 7, the search results window doesn’t have (by default) a column with the folder path of the found items. Instead, it has a column named Folder in the form of Folder name (folder’s containing folder path).

I don’t know the reason behind this decision, I just know that it makes hard to sort the found files by its path.

Fortunately, the folder path of the found items can be added to the list view by right clicking on any list column and selecting the folder path to be shown.

Unfortunately, I couldn’t find a way to make it permanent. I need to do that for every search.

Talking About Windows

The Next Generation of Windows® is almost here!

Microsoft is setting up a video blog that will officially debut in early May called Talking About Windows.

This video blog provides insight on Windows 7 from the Microsoft engineers who helped build the product.

Additionally, it provides real-world commentary from IT professionals who have chosen to shift to a modern OS.

You can watch the videos and participate by commenting in the spaces below each video and help spread the word about this exciting endeavor to build community.

Too bad the site doesn’t provide a feed to subscribe to the videos on my Zune.

Watch. Connect.
www.talkingaboutwindows.com

ASUS Eee PC 1000H And Windows 7

I just bought a new toy to the family: an ASUS Eee PC 1000H.

What made me choose this particular netbook was it’s 10.2” screen, WI-FI 802.11n support and the announced 7 hours of battery life. And the fact that it’s recommended by Luís Abreu (Asus Eee 1000h) and José Almeida (Asus Eee PC 1000H).

It comes with Windows XP pre-installed, but I didn’t intend to use it. It was the perfect machine to test Windows 7.

I used Dave Glover’s instructions on creating a bootable USB Windows Vista drive to create a bootable USB drive and used AcronisTrue Image Home to create an image of the original hard drive, and it all worked fine.

Unfortunately, the bootable USB drive only worked that time and I had to install Windows 7 from the installed Windows XP.

The installation was quick, as expected after reading other reports of installing Windows 7.

I didn’t upgrade the RAM to 2GB like Luís and José and I still get a rating of 2.2 and Aero.

I did lost some cool tools that were previously installed (like the virtual screen size), but I hop to get them working again. Dave has a list of software on his My ASUS Eee PC 1000H Netbook and Windows Vista Experiences blog post that I intend to try.

The bottom line is that I’m happy with it and intend, from now on, to take it to conferences, instead of another bigger slower and power eating laptop, the wife is also happy because she can read her e-mail and browse the Internet from the house and the geek teenager son feels he just got a new toy.

Does anyone have other experiences to share?

PDC And Tech-Ed Wrap-Up

(It might seem a bit late for this, but, lately, I’ve been having a lot on my mind. So here it goes.)

This was my first PDC. It was just as I had been told.

For those who don’t know, the PDC is all about the future. The near future (.NET 4.0 and Windows 7) and the further future (Windows Azure, “Oslo”, “Dublin”, “Geneva”).

Next year’s PDC (Yes! Apparently, there’ll be one next year) will be also held in Los Angeles from November 17 to 20, and (I suspect) will be the commercial launch of the Azure Services Platform and a better story to tell about “Oslo”.

Tech-ED EMEA Developers, on the other hand, is more about the present and the near future. But, this year, attendees were able to have a sneak peek at what had bee shown at the PDC.

Next year’s Tech-ED EMEA Developers will be held in Berlin from November 2 to 6. Probably, like in 2006, it will be the launch of .NET 4.0 and Visual Studio 2010.

And I intend to attend both.