Solved

Batch script for SCCM deployment

Posted on 2010-08-18
3
2,048 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

792 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