Configuration Manager Web Frontend

Update (01/27/2014): I have updated the installation files to the latest version (1.0.4)

Back in SCCM 2007 and SMS 2003 there was a popular community tool by Ron Crumbaker called web remote tools that would allow help desk staff to easily deploy software and access tools for a computer without having access to the console. With the new appmodel and other changes in SCCM 2012 these tools no longer work. Since Ron’s project has been stale for very long time I decided to create a modern replacement.

Configuration Manager Web Frontend (CMFrontend) is a HTML5 web application designed to provide quick access to information, tools, and deployments without the use of the Configuration Manager console.

CMFront_1 CMFront_2 CMFront_3

Features

  • Deploy both Applications and Packages
  • Quick computer information
  • Remote tools
  • Role based administration support
  • Realtime deployment status

Download & installation

CMFrontend can be downloaded here:

The installation is mostly automated but there are a few prerequisites that must be in place. Check the readme inside the zip file for more details.

Note: CMFrontend requires a new server 2012 VM to be setup.

How it works

CMFrontend uses a windows service and an asp.net mvc4 website to connect to the ConfigMgr management point and sql server in order to perform its actions. Most data is cached via an SQL database so that the service does not create excessive load on the management point.

Application deployments are performed by a specified service account that automatically creates a collection and a deployment for each program deployed per RBAC group.

CMFront_4

The tools are launched from the browser using a java applet. I have included the source code for this applet for any security concerns / repackaging & resigning.

What is next

  • Better / more detailed deployment updates
  • Applications tab which lets you view your computers from the application rather than the collection
  • Application list filtering
About these ads

37 thoughts on “Configuration Manager Web Frontend

  1. Snoop WW

    getting an error with the r2 install about starting the configman frontend background service, followed by installation successful.
    Can log in, but nothing loads, clicking admin gets a sql error.
    Service error is install.ps1: 473 char:1

    Reply
  2. Snoop WW

    database connection error it seems; reading the logs. 1 it seems to be trying on named pipes; that was not enabled although is now but has the same .net error. let me know if u want the log.

    Reply
  3. Jesse Staugaard

    Hey Scott, Nice work, great foundation. Having a bit of a problem where inventory data does not show up. Software pushing / Reporting all work fine. Any ideas on where I should start troubleshooting. IIS and CmWFE logs did not seem to indicate any issues. Thanks.

    Jesse

    Reply
  4. wayne

    Scott. I was looking for something like this as well. I am having the same issue with inventory not showing up. Software push/Reporting shows up fine.
    What was the solution above? did I miss something?

    Reply
    1. skeiffer Post author

      Goto the admin page and then click on the error log link at the bottom. That should shed some light on what is happening. Most likely there is a sql permissions issue or you are missing a view from the sccm sql database.

      Reply
  5. wayne

    I’m thinking it’s a database size issue though I don’t know how to resolve it other than perhaps installing SQL?
    Errors:
    The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.
    Sql Violation of PRIMARY KEY constraint ‘PK_dbo.CollectionComputers’. Cannot insert duplicate key in object ‘dbo.CollectionComputers’. The duplicate key value is (SMS00001, 16779510). The statement has been terminated

    Reply
  6. wayne

    Scott. The update fixed my issue in every way! Thank you so very much for your help and your establishment of this web console!

    Reply
      1. skeiffer Post author

        The applet is not working with the newest verison of java (7u51). They changed the way applets have to be packaged and signed and I have not fixed it yet.

  7. wayne

    Scott: It works ok in Chrome, or in older versions of IE. I was running in IE 11 and having issues. Once I allowed it as trusted in the javacpl it was fine.

    Reply
  8. troy

    Hi
    When I first log on I get a page with the word ‘starting’
    Underneath this page I see a message “deployment already exist…”

    can you help with this?

    Reply
  9. troy

    Hi
    When I first log on I get a page with the word ‘starting’
    Underneath this page I see a message “deployment already exist or an error has occured…”

    Reply
  10. troy

    Ok I managed to overcome the above error by entering the website FQDN.
    now It seems that java isn’t working.

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)
    Timestamp: Sun, 2 Feb 2014 12:34:38 UTC

    Message: Unable to get property ‘length’ of undefined or null reference
    Line: 2848
    Char: 25
    Code: 0
    URI: https://sccmwebsite.contoso.com/Scripts/jquery.dynatree-1.2.2.js

    Message: Unable to get property ‘length’ of undefined or null reference
    Line: 2848
    Char: 25
    Code: 0
    URI: https://sccmwebsite.contoso.com/Scripts/jquery.dynatree-1.2.2.js

    Reply
    1. skeiffer Post author

      Take a look at the two log files in c:\programdata\cmfrontend as well as the error log in the admin page. Most likely there is a permissions error somewhere.

      Reply
  11. Max

    Hello Scott
    Maybe is a silly question and im missing something obvious but installation is ok, solved the permissions issues within DB but after logon I cant see collections of computers or apps at all.
    Would appreciate your input. Thanks!

    Reply
  12. Evans Conforti

    I am having issues getting the site to load, all I see is “Starting” with IE and “Select a computer” with Chrome.
    During the install the only error I get is:
    Start-Service : Service ‘ConfigMgr FrontEnd Background Tasks (CMFrontEndBkg)’ cannot be started due to the following
    error: Cannot start service CMFrontEndBkg on computer ‘.’.
    At C:\Users\econforti\Downloads\CMFrontEndInstaller\install.ps1:473 char:1
    + Start-Service “CMFrontEndBkg” | Out-Null
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
    ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
    When I check the CMFrontEndBkg service, it is not started and states the it did not start due to a logon failure (It doesn’t matter what account I use). When I open the service and re-enter the PW is says the “Account has been granted the Log on As A service right” and I am then able to start the service.
    I tried to open the site on Windows 8.1 using IE11 and Chrome 35.0.1916.114 with JRE 1.7.51. Also with Windows 7 using IE9 and Chrome 35.0.1916.114 with JRE 1.6.27. When I logon with Chrome I am able to go to the Admin tab and check the error logs and see:
    No errors found.
    Any thoughts on this, or debugging options?

    Reply
    1. skeiffer Post author

      Check the log files in c:\programdata\cmfrontend. Also in IIS make sure the DefaultAppPool application pool’s identity is set to the same username as the cmfrontendbkg service.

      Reply
      1. Evans Conforti

        Sorry for the late reply, I thought I posted back on the 6th. Any way, I checked the logs nothing exciting:
        FrontendBackgroundService.log (The following message every hour or so)
        [06/17/14 3:59:33] [DeploymentStartupThread] Cleaning up deployments.
        w3wp.log
        [06/17/14 4:42:50] Website is starting.

        I checked the DefaultAppPool application pool’s identity and it is the same account as the cmfrontendbkg service. When I look at the DB and run a query:
        SELECT TOP 1000 [Id]
        ,[Name]
        ,[LastDataUpdate]
        FROM [CMFrontEnd].[dbo].[Computers]
        or
        SELECT TOP 1000 [Collection_Id]
        ,[Computer_Id]
        FROM [CMFrontEnd].[dbo].[CollectionComputers]
        I get no results, so I am guessing its not pulling information from the SCCM DB?

      2. skeiffer Post author

        On the admin page are there any RBAC groups listed? There should either be errors or you do not have any groups added into sccm and probably just user accounts. The server only looks for ad groups. Add an AD group and to the sccm console and it should show up on the website.

    2. Evans Conforti

      Okay, I have a few questions/Issues. First is that the site is not working with IE (Have it in Trusted Sites) but works fine with Chrome. Any thoughts? The next is the Tools section nothing is launching. The last is a question, can I change the default link to reports? It uses the ConfigMgr_SITECODE in the URL can this be changed to SCCM+Default+Reports?

      Reply
      1. skeiffer Post author

        The site is only tested on IE10 and up, firefox, and chrome. IE9 may be iffy as the site uses mostly modern html 5 stuff. May sure enterprise mode and or compatibility mode is off on this site.

        The tool section is run by a java applet. To get this to work after 7u51 or so you need to set security to medium and add the site to the site list.

        To edit the reports list open C:\inetpub\wwwroot\scripts\frontend.js goto line 672 and you should see where the urls are defined. You can remove and add as many as you like. Just use the existing ones as examples. Also if you need to edit more of the URL take a look at line 63.

  13. charitha

    Hi, I have installed this on the sccm server and after the installation done IIS is not working. What can be the issue. Please advice thanks.

    Reply
  14. Arturas

    Hi Skeiffer,

    I have one issue. The error in the log is saying it is trying to connect to CM_{site name} DB. but my Configuration manager DB is called ConfigMgr_{site name} . How could I change this to point to correct database?

    Thanks in advance,

    Arturas

    Reply
      1. Arturas

        Thanks, found it :) by the way, have you heard about issues with IE? should site be included to local or trusted sites? pages just freezes. I resolve the problem changing document mode to IE10, it is ie7 by default, is there a tag somewhere that sets IE document mode?

      2. skeiffer Post author

        The site is not setting the document mode. Perhaps you are setting the document mode via GPO or the IE installer? The site will work in IE10+, firefox, and chrome with no issues so you can also use another browser as well.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s