Install Remote Server Administration Tools on Windows 7 SP1

Remote Server Administrator Tools (RSAT) is not compatible with Windows 7 SP1. If you install Remote Server Administration Tools on Windows 7 SP1 slipstreamed media, you will get following error.

The update is not applicable to your computer

That’s because current RSAT version only supports Windows 7 RTM. To workaround this issue, you can Install Remote Server Administration Tools before installing Windows 7 SP1. The SP1 upgrade will update RSAT to SP1 version. The other option is wait for official release of Remote Server Administrator Tools for windows 7 SP1, which will happen this April.

Update 4/8/2011: Microsoft released Windows 7 SP1 RSAT Tools to public today. The download link is here http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d

Windows Server 2008 R2 SP1 New Features

Other than rolls up all previous released windows patches since RTM, Windows Server 2008 R2 SP1 contains two new features. Dynamic Memory and RemoteFX.

Dynamic Memory

Dynamic Memory is a memory management feature for Hyper-V VM administrators. Dynamic Memory allows administrator allocates a range of memory to indivual VMs and windows system will automatically adjust memory of each VM based on performance.

RemoteFX

RemoteFX creates a local like experience for remote users, including windows Aero and 3D contents.

You can read more about SP1 from Windows 7 Team Blog

Enable/Disable ipv6 in command line

By default IPv6 is not enabled on windows XP Pro and Windows Server 2003. However, its very easy to enable IPv6 with netsh (net shell) command line tool.

Enable ipv6

netsh interface ipv6 install

Disable ipv6

netsh interface ipv6 uninstall

To verify if ipv6 is enabled, run ipconfig /all and see if ipv6 address is returned.

Note: you can use netsh to enable/disable ipv4, just change ipv6 to ipv4 in above commands.

Run IIS in 32-bit mode on a 64 bit machine

To configure ASP.NET to run in 32 bit mode on a 64 bit server.

On IIS6, open a command prompt and type following command and press ENTER.

cscript //nologo %SYSTEMDRIVE%\InetPub\AdminScripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1

On IIS7/7.5, open a command prompt and type following command and press ENTER.

apppool /apppool.name:MyAppPool32bit /enable32BitAppOnWin64:true

You can set the same in IIS 7 Manager UI by opening the ‘Advanced Settings’ for the app pool and change Change the Enable 32-bit Applications to True

Enable 32 bit applications in IIS 7

How Can I Uninstall IE9

IE9 Uninstalling is done via Windows Update control panel.  Select the view installed updates and then uninstall IE9 via the context menu.

If you want to uninstall IE9 just because of degraded performance when viewing websites, you can try to turn off GPU rendering which might workaround the performance issue.

  1. In Internet Options, select the Advanced tab,
  2. Under Accelerated graphics, check the Use software rendering instead of GPU rendering checkbox.
  3. Click Apply then OK.
  4. Restart IE9

Continue reading

Hyper-V VM Slow on Windows Server 2008 R2

I recently upgraded my virtual machine hosting server from Window Server 2008 to Windows Server 2008 R2. There are some noticeable performance drop, especially on virtual machines that handles big log files, the automation script execution time can take 200% or more than it was in a VMHOST with Windows Server 2008.

I have done some testing and the performance downgrade seem introduced by the new power management system in windows server 2008 R2. There are 3 build in power plan in Windows Server 2008 R2

  • Balanced (recommended)
  • High Performance
  • Power Saver

The default power plan in Windows Server 2008 R2 is Balanced. After I change Power Plan to High Performance and the performance downgrade issue does no occur any more. My guess is when power plan is set to balance, applications might not full utilize all available hardware resources.

You can also checkout this post for Set the power configuration to High Performance in scripts.

Windows Server Features or Role Services required by this product are not enabled

 

When you install Office Web Apps on windows 7 that has Sharepoint 2010, you will see following error message

Setup is unable to proceed due to the following error(s):
Windows Server Features or Role Services required by this product are not enabled.
For a complete list, refer to the link below. For the list of pre-requisites needed to install the product please refer to:
http://go.microsoft.com/fwlink/?LinkId=106209
Correct the issue(s) listed above and re-run setup.
You can install all required prerequisites for this product by selecting the ‘Install software prerequisites’ option in the splash screen. See Help for more information.

Resolution

This is because Office Web Apps can only be installed on a server operation system.  Office Web Apps can only be installed on Windows 2008 Server x64 SP2 or R2 now. Also keep in mind Office Web App can only be installed after SharePoint Foundation 2010 or SharePoint server 2010 is installed.

Install PowerShell From Command Line

To install PowerShell on Windows Server 2008 R2 or Hyper-V Server 2008 R2, following features needs to be installed.

  1. NetFx2-ServerCore
  2. NetFx3-ServerCore
  3. MicrosoftWindowsPowerShell

Because Powershell is built on DotNet framework, DotNet 2.0 and 3.5  has to be installed prior to PowerShell installation.

To install PowerShell from command line, run following from elevated command prompt

DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell

Or run following command if it’s an 64bit machine

DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64 
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64 
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64