How to apply license on SCOM 2016(fwlink 74446)

Today I had a chance to revisit my SCOM Lab. But after booting everything, I noticed that even if all services are running including SQL and SCOM, the Ops Manager console throws an error on connecting.

TL;DR; My trial license is expired. Use Powershell to apply license:

  • Import-Module OperationsManager
  • Set-SCOMLicense –ProductId “<YOUR PRODUCT KEY>”
  • Restart-Service OMSSDK
  • New-SCOMManagementGroupConnection
  • Get-SCOMManagementGroup | Format-List –Property SkuForProduct, SkuForLicense, Version, Name, TimeOfExpiration

Long story, so will I reinstall today? So normal troubleshooting after seeing the error, restarting the services including SQL Server and nope, no joy there.

Going back to the console, thankfully there is a stack trace there. So lets read thru the errors, mostly access denied exception but there was the ex.message.toString there. So we have hopes here.

It seems that there was an access denied exception but the inner message is saying “You have exceeded the evaluation period of this product. Please upgrade to the retail version to continue using the product” Aha! I followed the link and it seems that it only redirects to a generic product page. Still no joy.


There are a few TechNet and Support articles out there, but there’s one problem. License IS expired already.

Problem is we cant connect to the management group, because, yes we have an exception. Yikes.


I think the article is a little off, since applying SCOM licenses are thru registry access so it shouldn’t require any connection.

So first, run PowerShell as an administrator on the server where SCOM is installed.

Apply the license key that you have for retail. (See TLDR section for Copy-Paste PS> commands)

Also remember also to restart the System Center Data Access Service after applying the license. Included in TLDR.


Try out the new connection and try and poke the management group and get the license details.

Then try and connect using the Console. Yes its working, but my apps are not.


So there ya go, and I’m back to my DevOps management group. I’m trying out the new MP for .NET APM with Application Insights. This is going to be fun. Well after we fix DB01. Should blog about it later.

Philippines Community Leaders Meetup with Microsoft MVP’s


So I had a chance to attend this meetup hosted at Fairmont hotel last December 6.


Got to meet new faces and met some older (much older) ones. Its an exciting time to work with these fellow leaders, especially on the OSS community here in the Philippines.


So thanks to Microsoft PH DX and our South East Asia Lead for inviting us and meeting us also in the event. Hope you guys can fly back here and see you guys soon!


Side by Side comparison of Windows Server 2016 Installation Memory Utilization (Hyper-V)

So I have 3 freshly installed Windows Server Virtual Machines with nothing installed but the base operating system. These are running on Windows 10 Enterprise with Hyper-V.

1. Windows Server 2012 R2 (GUI)

2. Windows Server 2016 (GUI)

3. Windows Server 2016 (Core




These virtual machines are on a strict memory diet Smile I have configured all three to have 32mb available RAM but on dynamic memory.


With no user logged-in and with only default services running, here are the results:


We see that the Windows Server 2016 Core installation runs at 454 MB next to it is the GUI for 2016 then finally at 692 MB for 2012 R2.

Now with Administrator Logged-in:


Now with Administrator Logged-in but closing server manager for virtual machines with GUI installed.


Trying to install IIS on all three VM using PowerShell:



After Installation:


I also tried browsing the default web site installation of each IIS as seen on this screenshot and here’s the memory assignment from Hyper-V:


I’m signing out of the server to make sure no UI is running or services other than the web server that we have just installed.


*Launches 3 Visual Studio 2015 and creates 3 web performance test projects*

I have created 3 simple load test from Visual Studio to simulate browsing to the websites. If you are familiar with Visual Studio impremise load test, you will notice that the scenario is a single webtest that will be invoked multiple times by a load test. The multiplied scenario is a just basic web request.


Lets run the load test:


We are running the load test for 5 minutes:


And after a few more minutes:


I want you to draw your own conclusions based on the data that I have shown in this blog. I also wanted to publish the Load Test Results, but thats for another time. Until then, see ya!


The movable cloud

I am moving my blog from this platform to this platform. Its more modern world where-in you can move from one PaaS to another. And I am inviting you to come with  me on this journey, bring snacks. Only snacks this will be quick but I’d pace my posts this time to allow context and to allow me be on a project today which is another beauty of the cloud. I am not lifting any servers today,


This will be a four part story on how to migrate your WordPress content to Microsoft Azure Web App.

Part 1: Exporting Content (TODO)

Part 2: Creating a Web App (TODO)

Part 3: Importing Your Content (TODO)

Part 4: Customizing Your Site (TODO)

How to disable clutter [Fixed]

Send Grid never failed me, I had never used the plain’ol SMTP way back when I started using Azure. But today, I have been pulling my hairs out because it seems my password reset is not sending any email.

I checked, double checked my IIdentityMessageService implementation and I know this works. I changed to my personal Office 365, refreshed it again and still no avail. But wait, what is this? Clutter. Clutter is a feature already as described here.


To turn this off, go to your Mail options by clicking the cog in the right hand corner and then click  options.

Navigate to Options > Mail > Automatic Processing > Clutter.


Uncheck “Separate items identified as clutter. Then click save.


There ya go, now back to the forgot password thingy.

Error CS1061 'ApplicationDbContext' does not contain a definition for 'ApplicationUsers' (Fixed)

Visual Studio ASP.NET MVC controller with views and EF template creates db.ApplicationUsers instead of just db.Users. 

Workaround summary:

1. Rename ApplicationUsers to Users

2. Delete the Controller and View

3. Close and Re-open VS and Project. Rebuild.

4. Recreate the Controller!


So its in the morning, you said lets scaffold! And you got this error:


This happens when you reference a foreign key your “ApplicationUsers” that is used in the IdentityDbContext that inherits IdentityUser.


And then when you add a new controller with views using EF the scaffold will generate the ApplicationUsers but its DbSet or property of the object will not be available. 

One workaround is to rename your ApplicationUsers to only “Users”.



Now this is important, delete the controller and its views folder after renaming. Then you need to close visual studio. 

Open the project once more and rebuild your solution.

You should now be able to scaffold the controller.


Happy Scaffoldings!

Chain Commands in Package Manager Console and PowerShell

So its late, I am in a hurry and am very hungry. I needed this to be quick.


You can actually “Chain” or have sequential commands in one line using PowerShell. To do this use a semicolon “;” in each statement or command.

What it does is execute each statement or command then brings back the cursor to you after the last command was executed.

Since Package Manager Console uses PowerShell. In fact, a simple get-command will display a long list of commands and modules (As I demonstrate… a long list, not a good idea without any filters on get-command on a development computer).


So using PowerShell’s Sub expressions, you can also chain your commands like enabling the migration and then adding an initial migration then finally update the database on one command inside package manager console.

It’s the little things.

PHIWUG Presents–Tech Preview

We just did our last technical session for the year 2015!

John Delizo Hosting and a quick demo on Docker and container technologies for deploying applications. And deploying applications to Windows Server 2016 Tech Preview.

Ren Narvaez on Microsoft Infrastructure Datacenter Security Today


Milo Pacamara on PH Emerging threat landscape and why upgrade


Felmar Tanada on Windows Server 2016 Preview: Nano Servers


Thank you for attending this session!