We’ve been working hard for the past couple of weeks since the release of ConfigMgr WebService 1.1.0. Today, we’re happy to announce that a new version is available, ConfigMgr WebService 1.2.0.

What’s new

In this new version, common tasks perform during operating system deployment have been included. See the list below for new methods available within this release:

Configuration Manager
  • GetCMUnknownDeviceByUUID
  • RemoveCMUnknownDeviceByUUID
Active Directory
  • AddADComputerToGroup
  • RemoveADComputerFromGroup
  • SetADComputerDescription
  • SetADOrganizationalUnitForComputer

DOWNLOAD CONFIGMGR WEBSERVICE

In order to get your hands on the bits for this web service, you have some options. You can download the source code from my GitHub page, and compile the web service yourself. For installation instructions, follow what’s outlined in the README.md file in the repository. You can visit my GitHub page from the link below:

https://github.com/NickolajA/ConfigMgrWebService

Your other option is to download a compiled version of the web service, ready for use. This version has been made available on TechNet Gallery:

https://gallery.technet.microsoft.com/ConfigMgr-WebService-100-572825b2

Update – Download version 1.2.0 and then update to 1.2.1 by replacing the ConfigMgrWebService.dll to get the latest bits.

ConfigMgr WebService 1.2.1 (610 downloads)

I’ve published the source code for the purpose of making it available for those organisations that cannot leverage untrusted publishers, but also if you’d want to get your hands dirty and have a look at it.

UPDATE INSTRUCTIONS

If you already have ConfigMgr WebService installed in your environment, you can update it simply by replacing the ConfigMgrWebService.dll file in the bin folder of where you’ve placed the web service files. Please not though, that since version 1.1.0, 3 new Application Settings was introduced that you need to add manually, or replace the web.config file with the existing one and re-enter the values for each application setting.

INSTALLATION INSTRUCTIONS

Please refer to the ConfigMgr WebService 1.2.0 – Installation Guide PDF attached in the package available on TechNet Gallery (see link above).

DOCUMENTATION

Also attached in the package is the documentation for each method currently available in the latest version of ConfigMgr WebService. Please refer to ConfigMgr WebService 1.2.0 – Documentation PDF for more information.

(1874)

Nickolaj Andersen

Principal Consultant and Enterprise Mobility MVP since 2016. Nickolaj has been in the IT industry for the past 10 years specializing in Enterprise Mobility and Security, Windows devices and deployments including automation. Currently working for TrueSec as a Principal Consultant. Awarded as PowerShell Hero in 2015 by the community for his script and tools contributions. Creator of ConfigMgr Prerequisites Tool, ConfigMgr OSD FrontEnd, ConfigMgr WebService to name a few. Frequent speaker at conferences and user groups.

comments
  • Cody
    Posted at 20:39 April 27, 2017
    Cody
    Reply
    Author

    Currently RemoveADComputerFromGroup is always returning “false” for me, and I’m not seeing the group membership change.

    Quick request! Could you possible add in a “CreateADComputer” option? Giving the option to specify name, description, ou?

    • Nickolaj Andersen
      Posted at 12:22 May 5, 2017
      Nickolaj Andersen
      Reply
      Author

      Hi Cody,

      It works fine here in my lab environment. Have you made sure that the identity that the Application Pool used by ConfigMgr WebService has the proper permissions to remove from groups?

      Regards,
      Nickolaj

  • Kenneth
    Posted at 19:00 May 7, 2017
    Kenneth
    Reply
    Author

    Does this web service work with MDT Standalone? When I run the test it works fine, but when running in MDT 500 errors

  • Danny
    Posted at 13:32 May 16, 2017
    Danny
    Reply
    Author

    Hi,

    Would it be possible to add the function “RemoveCMComputerFromCollection” to a future release of this web service?

    This would be a very helpful feature, such as at the end of an OSD task sequence so that the machine could be removed from the OSD collection after it has finished the task sequence.

    Great WebService by the way, really enjoying it! Keep up the good work.

    • Nickolaj Andersen
      Posted at 13:35 May 16, 2017
      Nickolaj Andersen
      Reply
      Author

      Hi Danny,

      Stay tuned, it has already been coded in ConfigMgr WebService 1.3.0 that is about to be released soon.

      Regards,
      Nickolaj

  • Leave a Reply