Solved

Batch script for SCCM deployment

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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