Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Batch script for SCCM deployment

Posted on 2010-08-18
3
Medium Priority
?
2,090 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 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

916 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