Saturday, April 6, 2013

Note to self: ConfigMgr 2012 SP1 Management Point is ASP.NET v4

 

I spent far too long trying to work out how to solve this problem and felt somewhat stupid afterwards!!

I am putting this up here as a reminder that, when deploying the ConfigMgr 2012 SP1 management point role on Windows 2008 R2 – to remember to register ASP.NET v4 with IIS,  If you don’t do this, you will see something like this in your mpcontrol.log:

Call to HttpSendRequestSync failed for port 80/443 with status code 500, text: Internal Server Error

If you get this, and your site system is running Windows 2008 R2, then you might have forgotten to register ASP.NET version 4 with IIS.  Prior to SP1 this was not an issue, as the management point web application ran using .Net version 3.5.  This is actually a descendent of .Net version 2, which was the default ASP.NET option in this OS.  When .Net v4 gets installed by the site server as part of the site system’s deployment, the ASP.NET version is not changed.  With Server 2012, the default is .Net v4 so we don’t have to do this.

In order to fix this, we need to run the following command from an elevated command prompt (run as administrator):

cd /d %windir%\Microsoft.Net\Framework64\v4*

aspnet_regiis –i –enable

Hey presto

If you still have issues then try removing and re-adding the MP role..

P.S.  My excuse for getting caught out by this is that I have been working with Server 2012 for so long that it slipped my mind

Winking smile

Friday, February 22, 2013

Hyper-V: Managing Failover IP Configuration with PowerShell

So it seems that managing failover TCP/IP configuration in Hyper-V replica is a bit of a pain.  There is no VMM integration (why?) and to manage anything but a small lab style deployment you are going to need some PowerShell.

Here is a basic script that will set the failover TCP/IP configuration on a set of VMs on a cluster, then talk to another cluster and set the same configuration on the replica machine.

Tuesday, February 12, 2013

ConfigMgr 2012 SP1 Computer Associations with PowerShell

Blimey!  It’s been a while, but here is a quick PowerShell script I made to create computer associations using the new PoSH module included in ConfigMgr 2012 SP1…

This might be useful when you don’t want to import computer information into ConfigMgr, using the SDK you can create the association between computers that are already known to SCCM.

It takes input from a CSV file that must contain at least two headings:  SourceComp and DestinationComp.  The CSV file must be called machines.csv and be located in the current working directory.