Share via


Deploying vbscript or batch or cmd files

Question

Tuesday, April 30, 2013 9:26 PM

Hi Intune Friends,<o:p></o:p>

Can anyone tell me how to deploy vbscript, or a batch or cmd file from Windows Intune? I am looking for a way to deploy multiple MSI one after the other similar to a task sequence in CM2007/CM2012. Any help would be greatly appreciated.

Thanks,

David

 

All replies (7)

Wednesday, May 1, 2013 9:26 PM ✅Answered

You will need some other script wrapper engine to automate multiple MSI installations in that fashion.  The good 'ol SMS Installer app can should be able that for you.  http://technet.microsoft.com/en-us/systemcenter/dd408384.aspx

Nick Moseley | http://t3chn1ck.wordpress.com


Wednesday, May 1, 2013 10:06 PM ✅Answered

Hi,

One option may be to upload CMD.exe plus your files you want to execute to Windows Intune (platform specific, "64bit for 64bit, etc"), then use the Command Line Arguments:  /c Filename.CMD /s 

This should execute your CMD file.  I would test out the solution first as well and make sure it's 100% silent and requires no user interaction.

Thanks,

Jon L - MSFT

This posting is provided "AS IS" with no warranties and confers no rights.


Wednesday, May 1, 2013 11:05 PM

I've found this tool helpful: http://www.impeltec.com/Resources/Software/impelLaunch.aspx.


Wednesday, May 1, 2013 11:13 PM

I've found this tool helpful: http://www.impeltec.com/Resources/Software/impelLaunch.aspx.

Interesting approach since all that utility does is run a program from a UNC share.  It wouldn't work at all for off-network systems.  Plus I would question the security of embedding user credentials (for connecting to the shares) in their product.

Nick Moseley | http://t3chn1ck.wordpress.com


Wednesday, May 1, 2013 11:20 PM

I only use it to run scripts that I upload to Intune. I don't use it to execute files from an on premise environment, or load credentials into the tool.  Maybe John's approach (filename.cmd /s) would accomplish the same thing for me without using the Impellaunch tool.  Using the impelllaunch tool is the only way I've been able to use a script with Intune.  Creating a custom install packages to accomplish the same is not in my skillset. 


Monday, May 6, 2013 7:11 PM

Thanks alot guys for all the great answers, I will test this out and let the group know what works best.

David


Monday, May 6, 2013 8:10 PM

http://sourceforge.net/projects/localupdatepubl/files/

Use runit to run cmd, powershell or other executable and provide what arguments and files you wish.

I use it to run a powershell script to first install ghostscript and then cutepdf.