SCCM 2012 – CM12R2RegistrationRequest

SCCM 2012 – CM12R2RegistrationRequest

Hi All,

while ago, i created the ConfigMgrRegistrationRequest . This tool was written in C# and used the beta/RC version of the CM12 SP1 SDK.

Since then, i started to move all my scripts from any language (vbscript, c#, etc) to powershell and today i’m happy to announce the beta version of the CM12R2RegistrationRequest.

If you don’t know what this tool is, let me explain:
This tool allow you create fake clients in the configuration manager enviornment. but you may be thinking why someone wants that? Easy..
1- size of your database
2- test reports
3- load

Once you run the tool, it will open a file called Import.csv (where you need to change the domain, site code, ip address, etc) and create a new record for each new PC. It will also send a DDR, request policy and send a test hardware inventory.

As you may notice, there are 2 template xml files called DDRTemplate.xml and HINVTemplate.xml. As you can imagine, these files are used as template when sending DDR as well as HInventory.

Anyway, download the CM12R2RegistrationRequest zip and use the powershell script as following:
1- Open the Import.csv and change the sitecode, domain, etc…
2- Run powershell as administrator
3- execute CM12R2RegistrationRequest.ps1 -smsmp ‘servername’

Once you’ve done it, you’ll see the new clients on the SCCM Console
CM12R2RegistrationRequest1

Also, for each new pc, check the properties, you’ll see this
CM12R2RegistrationRequest2

Note: Do not forget to download the SCCM 2012 R2 SDK and copy the Microsoft.ConfigurationManagement.Messaging.dll DLL to the same folder as the powershell scripts

About

Raphael is a 9 times Microsoft MVP with over 20 years of experience in IT, in which 13 years have been dedicated to System Center and Automation. His extended experience has been developed through several IT roles, from first-line support to principal consultant, towards a wide range of clients and sectors. One of the four MVPs in Enterprise Client Management in the UK, Raphael holds more than 30 Microsoft certifications and is an MCT (Microsoft Certified Trainer). Since 2008, Raphael has been providing Microsoft trainings from basic to advanced levels in several categories. Throughout his career, Raphael has joined as speaker in well-known events such as TechEd and Gartner Security Risk Management. He also organised community events and lectured around the world, sharing best practices and knowledge within the industry. Bilingual in English and Portuguese, Raphael has authored diverse articles published in Microsoft's TechEd, served as the editor-in-chief of a magazine focused on System Center in Brazil and wrote two books: "Understanding System Center 2012 SP1 Configuration Manager: The walkthrough book" and "System Center 2012 R2 Configuration Manager: Automation from Zero to Hero".

Tagged with: , , , , , , , , , , ,