Solved

Batch script for SCCM deployment

Posted on 2010-08-18
3
2,071 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Back in July, I blogged about how Microsoft's new server pricing model, combined with the end of the Small Business Server package, would result in significant cost increases for many small businesses (see SBS End of Life: Microsoft Punishes Small B…
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

635 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