Solved

Batch script for SCCM deployment

Posted on 2010-08-18
3
2,014 Views
Last Modified: 2013-11-21
Hi all,

     Can someone point me in the direction of a tool that can write a batch script?  I'm deploying a program via SCCM, but aside from installing the program, I need to register 3 OCX files and change the target path of the shortcuts that will be dropped on the desktop.  Any ideas?  Please Help.
0
Comment
Question by:Xeif3r
3 Comments
 
LVL 22

Accepted Solution

by:
Adam Leinss earned 500 total points
ID: 33467239
You can configure the icons ahead of time and just copy them down the the workstation
For the OCX files, regsvr32 /s filename should work
 Here's an example:
copy /y *.inf "C:\windows\downloaded program files"
copy /y *.ocx "C:\windows\downloaded program files"
regsvr32 /s "C:\windows\downloaded program files\pvvercheck_ie.ocx"
regsvr32 /s "C:\windows\downloaded program files\pview.ocx"
0
 
LVL 29

Expert Comment

by:matrixnz
ID: 33484388
Recommend using something like AutoIT www.autoitscript.com, it's free and has a very comprehensive help file with examples etc.. and this could easily be achieved.
Once you've downloaded AutoIT and installed it, just open the help file and search for FileCreateShortcut and also FileGetShortcut, you can also have the commands as aleinss setout above within the script.  99% of my packages have been wrapped with AutoIT, it's basically just like VBScript except it's got a better interface imho.

Cheers
0
 
LVL 31

Expert Comment

by:merowinger
ID: 33541585
Best way for sure is to already package the applications so that this issues does not occure
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
Know what services you can and cannot, should and should not combine on your server.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now