Thursday, 23 January 2014

Creating Service Connection Point (SCP) for Virtual Machine Manger using PowerShell

After an installation of System Center 2012 R2 Virtual Machine Manager today I was greeted at the end of the Wizard with a message that it couldn't register the SPN or SCP and to manually check them.



It's not the first time I've seen this message and rather helpfully the message directs you to run the ConfigureSCPTool.exe utility This is usually run with syntax similar to this:
"C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\setup\ConfigureSCPTool.exe"  -install VMMServer.DomainFQDN DomainShort\VMMServer

However when I ran it this time, it didn't create the Service Connection Point (SCP) for me (The SPN's btw were correct already).

The SCP is important as it provides a lookup point in Active Directory for the consoles to connect to the VMM server and I also believe that Bare Metal Deployment of Hyper-V hosts use it in some form.

I could have created the SCP manually using ADSI Edit, but since I'm scripting the installs at the moment, I took 5 minutes to wrap the creation into a script.
The script can be found here: http://sdrv.ms/1ebCofI

The script basically takes an input of your Domain NetBIOS (short) name, your Domain Fully Qualified Domain Name (FQDN), your VMM Server and the service account that your VMM service runs under (I haven't tested with a local system account!).

The script when run will create the SCP object under your server computer object in Active Directory with the required Keywords, Binding Information, Class Name and DNS Info.

2 comments:

mind.it said...

Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks. best vpn

Irfan Ali said...

I appreciated your work very thanks Best VPN China