Deploying and registering OCX files using ConfigMgr 2012


I’ve been asked about deploying and registering OCX files, well this is how we do ours…

Copy the INF and OCX files to a readily available location on the network. Also create two batch files (give the extension name of .cmd) with the following in each:

Batch file 1 (File Copy):

xcopy \LOCATION_OF_FILES*.* “c:\Windows\Downloaded Program Files” /e /c /i /g /h

Batch File 2 (OCX Reg):

regsvr32 /s “%windir%Downloaded Program FilesNAME_OF_OCX_FILE.ocx”

Then create 2 packages (yes both the same but one to copy and one to register) for those files in CM2012.

For the first package, lets call it “File Copy”, make the program point to the Batch File 1 (File Copy)

For the second package, lets call that “OCX Reg”, make the program point to the Batch File 2 (OCX Reg).

Then distribute those packages to your DPs so that are available.

Then, you create a Task Sequence under Operating Systems. Create two “Install Package” in this task sequence.

Then have the File Copy package run first, then the OCX reg one run second.

Deploy the task sequence to which ever collection you want it to go to and it should work!

Free Subscription!Subscribe to our site to receive updates via email!

Enter your email address below and click the Subscribe button to receive email notifications about new and exciting downloads available through our website at

You will also receive notifications about new technical guides, latest news and MSI installer downloads that are available through our blog here at 

We will not spam you and we will not pass on any of your details to anyone else. We tend to post new content once or twice a week.

Join 152 other subscribers

You can unsubscribe any time you like.

About A.J. Armstrong

Founder of TechyGeeksHome and Head Editor for over eight years! IT expert in multiple areas for over 20 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by A.J. Armstrong

Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.