Tuesday, October 9, 2012

Adding SCOM 2012 Product Key

After I installed SCOM 2012 it was showing as Evaluation version. In order to add the product key you need to run a powershell cmdlet as described in the kb article http://support.microsoft.com/kb/2699998

To check the current license, open an Operations Manager Shell and run

Get-SCOMManagementGroup | ft skuforlicense, version, timeofexpiration –a

To register your product run

Set-SCOMLicense -ProductId "Product-Key-Here"

The license got updated after I restarted the server

SCOM 2012 single server deployment

This is a simple deployment of SCOM 2012 installing all roles on a single Windows 2008 R2 server. Microsoft reommends this type of deployment for evaluation and testing purposes.

First install dotnet framekwork 3.5, 4.0 and the Microsoft Report Viewer 2010 Redistributable Package. Then Install and configure IIS web role and SQL server

I have created an active directory group ScomAdmins with local admin rights to the SCOM servers and SQL sysadmin role. I also created the following service accounts.

Management server action account – used to gather information and run responses on managed servers
System Center Configuration Service and System Center Data Access Service Account – used to update the Operations Manager Database. This account needs local admin rights to the SCOM server
Used by the Reporting Services to run queries against the reporting data warehouse
Reads from the operational database and updates the reporting data warehouse

I log in with a member of the ScomAdmins group: ScomAdmin and launch SCOM 2012 setup

The setup will check next for prerequisistes, installing any missing ones and proceed

Type in the name of the Management Group and proceed. Previously in SCOM 2007 you could have only 1 root management server, SCOM 2012 allows the management server role to be assigned to multiple servers making it easier to acheive high availability.

Type in the name of the SQL server and wait for setup to verify, in my case it is the same server.

Setup will probe next for available Reporting Services installations. If there is a problem hover over the red X for details. Resolve any issues and proceed, in my case the SQL Server Agent service was not running so I started and set it to automatic from the SQL Server Configuration Manager.
Next, choose the web site and authentication mode for the web console
Fill in the service accounts created earlier in the active directory and proceed

SCOM 2012 is now installed. You should then import the management packs you need and discover the devices to manage.

Wednesday, October 3, 2012

Autochk cannot run due to an error caused by a recently installed software package. Windows 2008 R2

Windows 2008 R2 is reporting NTFS file system corruption that requires a chkdsk.
I schedule a disk check and reboot, but it fails with this error

Cannot open volume for direct access.
Autochk cannot run due to an error caused by a recently installed software package.
Use system restore feature from the control panel to restore the system to a point prior to the recent software package installation.
An unspecified error occurred (766f6C756d652e63 3f1).

I suspect the antivirus software was denying disk access, but I did not want to uninstall anything.
The safest thing to do with minimal changes seemed to run chkdsk from the Windows 2008 R2 DVD, so I boot from it, start a command prompt and run

chkdsk /f d:

chkdsk runs for a while and repairs some stuff. I reboot back into windows, the drive is OK and the file system errors are gone.