One of the less-known benefits of the SCCM Cloud Management Gateway is the ability to install the Configuration Manager client to devices that are not connected locally and manage those devices without ever being on the internal network. For example DMZ servers. To do so, the client must be installed by a command line with an SCCM CMG Bulk Registration Token.
In this post, we will show how to use the Bulk Registration Token to enroll DMZ servers to the Cloud Management Gateway.
The tool is simple. Only 3 switches are available:
When /new is used without /LifeTime, it will have a default life time of 3 days.
The /LifeTime can be specified and have up to 10,080 minutes (seven days).
ccmsetup.exe /mp:<https://CloudApp.net address> CCMHostName=<CloudApp.net address> SMSSiteCode=<your site code> /regToken:<Registration Token generated earlier>
This is of course on one line, but for clarity, here are the required switches. Pay close attention to the layout of the command.
(Get-WmiObject -Namespace Root\Ccm\LocationServices -Class SMS_ActiveMPCandidate | Where-Object {$_.Type -eq “Internet”}).MP`
For more details about Configuration Manager client install command lines, see Microsoft docs.
One common error that is likely to happen is to have certificate validation error.
This kind of error is likely because of one of the following:
The bulk registration token is only useful for the initial communication with the Cloud Management Gateway, to enroll the device within Configuration Manager.
It is not possible to renew a Bulk registration token. Whenever the need for a bulk registration comes, a new must be generated and used toward new devices.
If no other authentication method is used for this device(certificate or Azure AD authentication), the Configuration Manager client will automatically renew its token once a month and will be valid for up to 90 days.
For more details about the Bulk Registration token, see Microsoft docs.
Please fill out the form, and one of our representatives will contact you in Less Than 24 Hours. We are open from Monday to Friday.
Thank you for subscribing to our newsletter or requesting a quote. You will receive our next month's newsletter. If you have requested a quote, we will get in touch with you as soon as possible.
Something went wrong!
Thank for your reply!