Windows 7 is much more user-friendly than Windows Vista. I don’t like that. – The Big Bang Theory

The Big Bang Theory: Windows 7 is much more userfriendly than Windows Vista

silverlightYou can simply add Silverlight support to your IIS6 webserver running on Windows Server 2003.

To enable IIS 6.0 in Windows Server 2003 or IIS7 in Windows Vista RTM with the appropriate MIME Types, add:

  • .xap     application/x-silverlight-app
  • .xaml    application/xaml+xml
  • .xbap    application/x-ms-xbap

Adding MIME Types by a simple VB script:

  • Here is a VBS script you could run to enable each of these types:

Const ADS_PROPERTY_UPDATE = 2

if WScript.Arguments.Count < 2 then
WScript.Echo “Usage: ” + WScript.ScriptName + ” extension mimetype”
WScript.Quit
end if

‘Get the mimemap object.
Set MimeMapObj = GetObject(“IIS://LocalHost/MimeMap”)

‘Get the mappings from the MimeMap property.
aMimeMap = MimeMapObj.GetEx(“MimeMap”)

‘ Add a new mapping.
i = UBound(aMimeMap) + 1
Redim Preserve aMimeMap(i)
Set aMimeMap(i) = CreateObject(“MimeMap”)
aMimeMap(i).Extension = WScript.Arguments(0)
aMimeMap(i).MimeType = WScript.Arguments(1)
MimeMapObj.PutEx ADS_PROPERTY_UPDATE, “MimeMap”, aMimeMap
MimeMapObj.SetInfo

WScript.Echo “MimeMap successfully added: ”
WScript.Echo ” Extension: ” + WScript.Arguments(0)
WScript.Echo ” Type: ” + WScript.Arguments(1)

  • If you copy and paste the code above into a VBS file and save it as ADDMIMETYPE.VBS the syntax to add each type would be:

ADDMIMETYPE.VBS .xap application/x-silverlight-app ADDMIMETYPE.VBS .xaml application/xaml+xmlADDMIMETYPE.VBS .xbap application/x-ms-xbap

or you could add it very simple over the IIS Manager.

  • Use the MS SQL Server Management Studio
EXEC sp_dboption ‘XXX’, ‘trunc. log on chkpt.’, ‘TRUE’
CHECKPOINT
DBCC SHRINKFILE (‘XXX_Log’, TRUNCATEONLY)
EXEC sp_dboption ‘XXX’, ‘trunc. log on chkpt.’, ‘FALSE’
GO
  • (replace XXX with the database name)
  • Use the SQL Query Analyzer

BACKUP LOG XXX WITH TRUNCATE_ONLY
GO
DBCC SHRINKFILE(XXX_log, 10)
GO

  • (replace XXX with the database name)

Tonight I did a bigger P2V (physical 2 virtual) migration. I virtualized an older Windows Server 2003 SP1 with MS SQL Server 2005 and WSS 3.0. This can be used as a step by step how-to guide.

  • First I created a Image of the old server with Symantec Backup Exec System Recovery 2010, this could be done online. I just stopped all the Sharepoint, SQL and Web Services so that no new data could be written in the time I created this Image.
  • After I moved this Image to the Microsoft Hyper-V Host Server, I started to convert the v2i Image with Symantec Backup Exec System Recovery 2010 to a Microsoft VHD.
  • I created a new Virtual Machine on the Hyper-V Server and added this existing VHD. (Important here: I tried to create the same Hardware environment for the VM which I had as physical Hardware before. (Dual Core with 2048MB memory) So I had basically no problem to start the Virtual Machine.
  • Now its time to install the Hyper-v integration components (the VM Drivers) which can only be installed on Windows Server 2003 with SP2 or later. I turned off the Virtual Machine again and attached the VHD File offline on my Hyper-v Server, so I had file access to the Virtual Hard Disk. I simply added the Servicepack 2 file to the root of the VHD.
  • After unmounting the VHD, I started my Virtual Machine again and installed the Servicepack 2 and the Hyper-v Integration components.
  • Now I added more Hardware to the Virtual Machine (Quad-Core and 4GB memory). I also change the Legacy Network Adapters to normal Network Adapters (higher Network performance)

The performance of the new Hyper-v is just pretty impressive.

Today I got a error message from our monitoring that Rsync Service on one of our server doesn’t run. Reinstalling the service does not solve the problem. I could start the service but after some seconds the service stopped again.

The Event Log shows the following information:

==============================
Event Type: Information
Event Source: RsyncServer
Event Category: None
Event ID: 0
Date: 22.12.2009
Time: 08:30:52
User: WEB-WIN-xxx-xxx\SvcCWRSYNC
Computer: WEB-WIN-xxx-xxx
Description:
The description for Event ID ( 0 ) in Source ( RsyncServer ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: RsyncServer: PID 1856: `RsyncServer’ service stopped, exit status: 11.
==============================
There is a pretty easy solution for this problem:
  • Delete the .pid file in the cwrsync directory (in our case this is: C:\Program Files\ICW)
  • now start the service

I just updated my VMware Fusion on my MacBook Pro and my iMac at work. I did some snapshots of the Windows Experience score in my Windows 7 VM.

With this Update the VMware Fusion Team did a really good job on the graphics drivers:

VMware Fusion 3.0:
Windows 7 @ VMware Fusion 3.0

VMware Fusion 3.0.1:
Windows 7 @ VMware Fusion 3.0.1

They also fixed over 50 bugs and added new features, checkout the VMware Fusion Blog.

After a late night session doing some work on a new webserver, I found a really important blog post (windowsitpro.com) for IIS administrators. The blog post shows how you get the password of the IUSR and the IWAM local accounts form the metabase.

Normally the IUSR and IWAM password are set automatically and unknown. But if you import the metabase on another you have to change the passwords of these two users (IUSR_<local machine name> and IWAM_<local machine name>).

  • First you have to update the adsutil.vbs script (localdiskdrive:\Inetpub\AdminScripts). You have to replace all the “”IsSecureProperty = True” with “”IsSecureProperty = False” otherwise the command would not show the real password.
  • Now you can run the following commands to get the password of these users

Get the IUSR password:

C:\Inetpub\AdminScripts>cscript adsutil.vbs get w3svc/anonymoususerpass

return:

anonymoususerpass : (STRING) “password”

Get the IWAM password:

C:\Inetpub\AdminScripts>cscript adsutil.vbs get w3svc/wamuserpass

return:

wamuserpass : (STRING) “password”

  • you also can set the passwords for those accounts in the metabase

Set the IUSR password:

C:\Inetpub\AdminScripts>cscript adsutil.vbs set w3svc/anonymoususerpass “password”

Set the IWAM password:

C:\Inetpub\AdminScripts>cscript adsutil.vbs set w3svc/wamuserpass “password”

  • after you change the passwords, you should sync the password from IIS with Microsoft Transaction Server (MTS) and component services with the following command

sync MTS:

C:\Inetpub\AdminScripts>cscript.exe synciwam.vbs -v

Thanks to John Savill

about thomasmaurer.ch

Thomas Maurer

Thomas Maurer.
Born in 1986. live in Diegten. Switzerland. work as a System Administrator in Allschwil(Switzerland). interested in in Apple, IT, TV, Movies, Design and Art.

Follow me on twitter

  • Carmen Cruz: BING search engine is just as good as Google. In my own personal experience, Google does give more r [...]
  • Marco Weber: ho no... This utility says: Smart Component execution not supported at this time in Server Vir [...]
  • Thomas Maurer: yeah but its really impressiv for a VM ;-) [...]
  • codeman38: Although it's only a 2.0 rating, they got Aero running in a VM on my year-old white MacBook's Intel [...]
  • Dave Cornall: This issue caused our workflows to return the error 401: Unauthorized. at System.Workflow.Activitie [...]

My Tweets

Latest Photos

IMG_0019DSCN0078DSCN0077DSCN0325.JPGDSCN0324.JPGDSCN0323.JPG

Ad