Rehome FCS

When I was building our SCCM environment I decided it would be a good time to clean up WSUS & FCS and bring them under the new system.

The problem I ran into was “How do I repoint FCS?” without having to uninstall and reinstall it on every machine.

The solution, a bit of VB script based on the information here: http://blogs.technet.com/fcsnerds/archive/2008/11/12/changing-the-management-group-to-which-an-fcs-client-reports.aspx

Dim objFSO
Dim objWSH

'Old & new groups
FCSGRPOLD="ForefrontClientSecurity"
FSCGRPNEW="FCS"

'Old & new servers
FCSSVROLD="wsusav.ninet.org" 'OLD SERVER
FCSSVRNEW="fcs.ninet.org" 'NEW SERVER

'Remove group and server from previous FCS Server (uncomment echo below to debug command line)
objWSH.Run "MsiExec.exe /I{F692770D-0E27-4D3F-8386-F04C6F434040} /norestart /qn /l*v " & CHR(34) & "C:\MOMREM.log" & CHR(34) & " CONFIG_GROUP=" & CHR(34) & FCSGRPOLD & CHR(34) & " CONFIG_GROUP_OPERATION=" & CHR(34) & "RemoveConfigGroup" & CHR(34) & " MANAGEMENT_SERVER=" & CHR(34) & FCSSVROLD & CHR(34) & " AM_CONTROL=" & CHR(34) & "Full" & CHR(34) & " REQUIRE_AUTH_COMMN=1 REINSTALL=" & CHR(34) & "ALL" & CHR(34), 0, True
'wscript.echo "MsiExec.exe /I{F692770D-0E27-4D3F-8386-F04C6F434040} /norestart /qn /l*v " & CHR(34) & "C:\MOMREM.log" & CHR(34) & " CONFIG_GROUP=" & CHR(34) & FCSGRPOLD & CHR(34) & " CONFIG_GROUP_OPERATION=" & CHR(34) & "RemoveConfigGroup" & CHR(34) & " MANAGEMENT_SERVER=" & CHR(34) & FCSSVROLD & CHR(34) & " AM_CONTROL=" & CHR(34) & "Full" & CHR(34) & " REQUIRE_AUTH_COMMN=1 REINSTALL=" & CHR(34) & "ALL" & CHR(34)

'Update group and server to point to new FCS Server (uncomment echo below to debug command line)
objWSH.Run "MsiExec.exe /I{F692770D-0E27-4D3F-8386-F04C6F434040} /norestart /qn /l*v " & CHR(34) & "C:\MOMAdd.log" & CHR(34) & " CONFIG_GROUP=" & CHR(34) & FSCGRPNEW & CHR(34) & " CONFIG_GROUP_OPERATION=" & CHR(34) & "AddConfigGroup" & CHR(34) & " MANAGEMENT_SERVER=" & CHR(34) & FCSSVRNEW & CHR(34) & " AM_CONTROL=" & CHR(34) & "Full" & CHR(34) & " REQUIRE_AUTH_COMMN=1 REINSTALL=" & CHR(34) & "ALL" & CHR(34), 0, True
'wscript.echo "MsiExec.exe /I{F692770D-0E27-4D3F-8386-F04C6F434040} /norestart /qn /l*v " & CHR(34) & "C:\MOMAdd.log" & CHR(34) & " CONFIG_GROUP=" & CHR(34) & FSCGRPNEW & CHR(34) & " CONFIG_GROUP_OPERATION=" & CHR(34) & "AddConfigGroup" & CHR(34) & " MANAGEMENT_SERVER=" & CHR(34) & FCSSVRNEW & CHR(34) & " AM_CONTROL=" & CHR(34) & "Full" & CHR(34) & " REQUIRE_AUTH_COMMN=1 REINSTALL=" & CHR(34) & "ALL" & CHR(34)

'Restart MOM service (uncomment echo below to debug command line)
objWSH.Run "cmd.exe /c " & CHR(34) & "sc config mom depend= rpcSs/eventLog/winmgmt & net stop mom & net start mom" & CHR(34), 0, TRUE
'wscript.echo "cmd.exe /c " & CHR(34) & "sc config mom depend= rpcSs/eventLog/winmgmt & net stop mom & net start mom" & CHR(34)

Deploying this through SCCM as a advertised program that runs as an admin without user interaction, will repoint the forefront client.

A good way to see where everything is pointing is to inventory the registry keys. This version isn’t perfect as I don’t like the layout but it is easy to add unrelated keys for checking.
You will need to edit both the sms_def.mof & configuration.mof files.  Place the SMS_DEF edit at the end of the SMS_DEF.MOF file. Place the Configuation.mof edit between the extension tags in the Configuration.MOF file.

If you run the inventories a few time before the rehome script in the report you should see  the machines pointing at the old(current) server. Once the script has run this should change to the new server.

Files

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This blog is kept spam free by WP-SpamFree.