Archive for April, 2009

Outlook Anywhere bug with Windows Server 2008

April 28, 2009 Leave a comment

There is a bug in Windows Server 2008 when you are using Exchange 2007 Outlook Anywhere (or trying to use). The server is not listening port 6004 over IPv6 loopback and the current suggestion (by community, not official) to fix this is to disable IPv6 all together. I’ve found a pretty good post that describes how to disable IPv6 and install RPC over HTTP, here’s the link.

PS! This should be fixed in Exchange Server 2007 Update Rollup 5



If Search is not working in Outlook Web Access 2007 (how to fix)

April 28, 2009 1 comment

If you got a problem that search is not working in Outlook Web Access 2007, then here is what you should do to fix it:

1. Go to you Exchange 2007 server and open Exchange Management Shell.
2. Type in: ResetSearchIndex -Force –All


Hyper-V Remote Management – Error 0x800704C8

April 28, 2009 Leave a comment

Yesterday I upgraded my MS Windows Server 2003 R2 with Virtual Server 2005 R2 (x64) machine to Windows Server 2008 Server Core /w Hyper-V (x64). Everything went smoothly, the installation, joining with domain and installing MS Firefront Client Security. The problems started when I was trying to create new machines to my Hyper-V server. I did not bother with migrating from old vmc files, so I just created a new machines and added the hard disks later. When I was trying to create my first machine, to my surprise I got an error. It should have been just follow the wizard and press finish thing. but instead I passed all the needed steps, name and location, the amount of memory, network settings, hard disk settings and finally the finish button but instead of getting a nice confirmation that virtual machine was created successfully I got this error:

The server encountered an error while configuring memory on the New Virtual Machine. Wizard Failed in rolling back the created virtual machine. Please delete it manually afterwards.
Failed to add device ‘Microsoft Synthetic Ethernet Port’

The Virtual Machines configuration GUID at ‘C:\Program Data\Microsoft\Windows\Hyper-V’ is no longer accessible: The requested operation cannot be performed on a file with a user-mapped section open. (0x800704C8)

I searched for this error on Google and it looks like this only happens when you have on your Windows Server 2008 Server Server Core /w Hyper-V installed Forefront Client Security. To fix it you need to download a patch. I suggest you to do it manually without using automatic windows update. You can get the patch from here. Just follow these instructions to download it:

1. Go to Microsoft Update Catalog Web site.
2. Type 952265 in the Search box, and then click Search.
3. Click Add to add the hotfix to the basket.
4. Near the search bar at the top, click the view basket link.
5. Click Download.
6. Click Browse, specify the folder to which you want to download the hotfix, and then click OK.
7. Click Continue, and then click I Accept to accept the Microsoft Software License Terms. The hotfix starts to download.
8. Wait until the hotfix is downloaded to the specified location, and then click Close.
9. Find the patch most suitable to your needs (from the catalogue you downloaded it), copy the patch to your Server Core and install it. After that everything should start working like a charm.


Automatic Updates on Windows Server 2008 Server Core (and how to do it manually)

April 28, 2009 Leave a comment

Here are the commands which you can use to modify Automatic Updates settings on Server Core installation:

* To view the status of Automatic Updates:
cscript SCregEdit.wsf /AU /v
* Enable Automatic Updates:
cscript SCregEdit.wsf /AU 4
Net stop wuauserv
Net start wuauserv

* Disable Automatic Updates:
cscript SCregEdit.wsf /AU 1
Net stop wuauserv

* Forcing update check:
Wuauclt /detectnow
* Checking which updates are installed:
wmic qfe list

Now how to do it manually? Here are the steps:

1. Copy and pate the following script to NotePad on the Core installation:
Set updateSession = CreateObject(“Microsoft.Update.Session”)
Set updateSearcher = updateSession.CreateupdateSearcher()
WScript.Echo “Searching for updates…” & vbCRLF
Set searchResult = _
updateSearcher.Search(“IsInstalled=0 and Type=’Software'”)
WScript.Echo “List of applicable items on the machine:”
For I = 0 To searchResult.Updates.Count-1
Set update = searchResult.Updates.Item(I)
WScript.Echo I + 1 & “> ” & update.Title
If searchResult.Updates.Count = 0 Then
WScript.Echo “There are no applicable updates.”
End If
WScript.Echo vbCRLF & “Creating collection of updates to download:”
Set updatesToDownload = CreateObject(“Microsoft.Update.UpdateColl”)
For I = 0 to searchResult.Updates.Count-1
Set update = searchResult.Updates.Item(I)
WScript.Echo I + 1 & “> adding: ” & update.Title
WScript.Echo vbCRLF & “Downloading updates…”
Set downloader = updateSession.CreateUpdateDownloader()
downloader.Updates = updatesToDownload
WScript.Echo vbCRLF & “List of downloaded updates:”
For I = 0 To searchResult.Updates.Count-1
Set update = searchResult.Updates.Item(I)
If update.IsDownloaded Then
WScript.Echo I + 1 & “> ” & update.Title
End If
Set updatesToInstall = CreateObject(“Microsoft.Update.UpdateColl”)
WScript.Echo vbCRLF & _
“Creating collection of downloaded updates to install:”
For I = 0 To searchResult.Updates.Count-1
set update = searchResult.Updates.Item(I)
If update.IsDownloaded = true Then
WScript.Echo I + 1 & “> adding: ” & update.Title
End If
WScript.Echo vbCRLF & “Would you like to install updates now? (Y/N)”
strInput = WScript.StdIn.Readline
If (strInput = “N” or strInput = “n”) Then
ElseIf (strInput = “Y” or strInput = “y”) Then
WScript.Echo “Installing updates…”
Set installer = updateSession.CreateUpdateInstaller()
installer.Updates = updatesToInstall
Set installationResult = installer.Install()
‘Output results of install
WScript.Echo “Installation Result: ” & _
WScript.Echo “Reboot Required: ” & _
installationResult.RebootRequired & vbCRLF
WScript.Echo “Listing of updates installed ” & _
“and individual installation results:”
For I = 0 to updatesToInstall.Count – 1
WScript.Echo I + 1 & “> ” & _
updatesToInstall.Item(i).Title & _
“: ” & installationResult.GetUpdateResult(i).ResultCode
End If

2. Save the file as WUA_SearchDownloadInstall.vbs.
3. Go to the folder where your WUA script is saved and run:
cscript WUA_SearchDownloadInstall.vbs [Enter]
4. Answer Y to install the found updates, once finished Reboot Required: True flag is raised. If so use the command:
shutdown /r /t 20
Don’t forget to shutdown your running virtual machines first.


Hyper-V Remote Management Console for Windows Vista

April 28, 2009 Leave a comment

Few posts ago I wrote about Remote Server Administration Tools, but there was one thing missing from that package, remote management console for Hyper-V. Now Microsoft has released Hyper-V Remote Management console for Windows Vista here are the links:

(x86) and (x64)

PS! This should work under Windows 7 as well.


Prompting Server name on Server Core Command Prompt

April 28, 2009 2 comments

Lets say you got or you plan to deploy several Windows Server 2008 Server Core installations and you are connecting to them by using the Terminal Services Remote Programs. So you get a default simple prompt. Using the following tip you can change the default prompt and add a servername. Open the registry and navigate to the following key:

HKLM\System\CurrentControlSet\Control\Session Manager\Environment

Look for a key called Prompt, if it’s not there then use the following settings to create one:

Value Name: Prompt
Value Data: $_Server:[%servername%]$_Username:[%username%]$_$T$_$p$g

Here are some special codes you can also use:

* $A – & (Ampersand)
* $B – | (pipe)
* $C – ( (Left parenthesis)
* $D – Current date
* $E – Escape code (ASCII code 27)
* $F – ) (Right parenthesis)
* $G – > (greater-than sign)
* $L – < (less-than sign)
* $N – Current drive
* $P – Current drive and path
* $Q – = (equal sign)
* $S – (space)
* $T – Current time
* $_ – Carriage return and linefeed
* $$ – $ (dollar sign)


Enabling Firewall rules on Windows Server 2008 Server Core for remote management

April 28, 2009 Leave a comment

Here are some common rules you might want to enable on your Core Server for remote management.

To enable all the rules for remote administration use this command:
Netsh advfirewall firewall set rule group=“remote administration” new enable=yes

To enable specific commands follow this format:
Netsh advfirewall firewall set rule group=“” new enable=yes

For example:
MMC Snap-in – Event Viewer
Windows Firewall Rule Group – Remote Event Log Management
Netsh advfirewall firewall set rule group=“Remote Event Log Management” new enable=yes

MMC Snap-in – Disk Management
Windows Firewall Rule Group – Remote Volume Management
Netsh advfirewall firewall set rule group=“Remote Volume Management” new enable=yes

MMC Snap-in – Windows Firewall with Advanced Security
Windows Firewall Rule Group – Windows Firewall Remote Management
Netsh advfirewall firewall set rule group=“Windows Firewall Remote Management” new enable=yes

I’m not going to rewrite here all the commands. Here’s the link to David Daivs’s article about how to configure Windows Server 2008 Advanced Firewall. Enjoy!