Deploying and registering OCX files using ConfigMgr 2012

Last updated on September 25th, 2021 at 09:30 pm

Read Time:1 Minute, 0 Second

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!

Deploying and registering OCX files using ConfigMgr 2012 1

About Post Author

A.J. Armstrong

Founder of TechyGeeksHome and Head Editor for over 12 years! IT expert in multiple areas for over 22 years. Sharing experience and knowledge whenever possible! Making IT Happen.
Click to rate this post!
[Total: 0 Average: 0]

Free Subscription

If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.

Join 453 other subscribers.

No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.


Leave us a message...

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

How to deploy certificates for custom WSUS updates to client machines 4 Previous post How to deploy certificates for custom WSUS updates to client machines
sccm logo Next post SCCM Capture media in Windows x64 not working – FIX