Monday, January 30, 2012

Monitoring Custom Event Log using SCOM 2007 R2

I am going to configure SCOM to send email alerts whenever an event gets logged in a custom log "Applications and Services Logs"

From the Operations Console go to Authoring tab -> Rules (under Management Pack Objects)

Sunday, January 29, 2012

Configure a highly available virtual machine on a Hyper-V cluster

To make a virtual machine highly available on a hyper-v cluster:
  1. Create the machine on server as you normally do from Hyper-V Role in the Server Manager and store in the Cluster Shared Volume
  2. If the machine requires network access, make you sure the virtual network you attach it exists with the same name on all Hyper-V nodes
  3. From the Server Manager -> Features -> Failover Cluster Manager expand the cluster then from "Services and applications" click "Configure A Service or Application..." on  the Actions pane and follow the wizard as below

Finding and deleting non present devices in Windows Server

I moved a virtual machine to a another hyper-v server without exporting the machine, just moved the vhd used it in a new machine.
While trying to set the IP address I got this error:

The IP address you have entered for this network adapter is already assigned to another adapter (Microsoft Virtual Machine Bus Network Adapter) which is no longer present in the computer. If the same address is assigned to both adapters and they both become active, only one of them will use this address.
This may result in incorrect system configuration.

Monday, January 16, 2012

Permissions for exporting Hyper-V virtual machines to UNC paths

When you try to export a virtual machine to network share you might receive this error:

An error occured while attempting to export the virtual machine.

Faileld to copy file during export.

General access denied error (0x80070005)

Thursday, January 12, 2012

Add a domain group to SQL Server Logins

You may notice that by default you can add domain user accounts but not security groups to SQL Server logins.
To grant permission to a group, navigate from the Management Studio to Security -> Logins, right click -> "New Login", click Search button next to "Login name:", click "Object Types", check "Groups". Now you should be able to resolve group names as well

Monday, January 9, 2012

Installing Team Foundation Server 2010 on a workgroup single server

Team Foundation Server 2010 workgroup single-server deployment on Windows 2008 R2:

  1. Install Web Server Role IIS7 and .NET Framework 3.5 Feature
  2. Install SQL Server Database Engine
    1. Optional: For Reporting install SQL Server Reporting and Analysis Services, Configure Reporting Services in Native Mode and create a service local account for TFS Reporting
  3. Optional: For Portal install MOSS or get WSS from here, Configure the SharePoint farm and create a new Web Application
  4. Setup Team Foundation Server
  5. Run the Team Foundation Server Advanced Configuration Wizard

Keyboard shortcuts in remote desktop

I'm using a windows xp client to connect remotely to windows 2008 server. Suddenly keyboard shortcuts such as ALT+TAB or Win+R were captured by my local machine, even though the RDP client is configured to use them on the remote machine (Local Resources tab).
Also the Win key gets stuck a lot on the remote machine. According to Microsoft there is a bug in RDP that causes that if you use the keyboard shortcut Win+L to lock your machine while RDP session is in focus.

None of the workarounds unfortunately worked with me and I do not want to use the alternate shortcuts for RDP. The real problem in my case was that the "Terminal Services" service was disabled, running it back made the key presses go through to the remote machine.

Thursday, January 5, 2012

Internet Information Services us running in 32-bit emulation mode.

You may get this error during MOSS or WSS installation on 64-bit Windows Server:

Setup is unable to proceed due to the following error(s):
Internet Information Services is running in 32-bit emulation mode.
Correct the issue(s) listed above and re-run setup.

To fix the problem disable 32-bit support in the default application pool settings.

From IIS Manager -> Application Pools -> Set Application Pool Defaults, set the "Enable 32-Bit Applications" to False.

Or run this from your Intepub/AdminScripts folder

cscript adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1

Wednesday, January 4, 2012

CHM help file: Navigation to the webpage was canceled

If a CHM help file showing navigation canceled error in all pages, right click the file -> properties then click Unblock button next to the Security warning message: This file came from another computer and might be blocked to help protect this computer