Jump to content


  • 0
Rocket Man

Running Command line Help

Question

How can I run a commandline in a TS to tell the client to go to a share to run a script that will install a piece of software.

 

I have a very large piece of software that I have packaged and sitting on a share on the network. i have created a script that i have placed in the source directory of the package. If i run the script manually by browsing to the share from the client it will install the software on the client, but i want to be able to automate this step via SCCM.

 

 

Any help is appreciated

 

 

Rocket Man

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Hello,

 

I will go with the assumption that you are using SCCM2007.

I suppose you have very strong reasons to install your very big package from the share and not to distribute it directly with SCCM. Otherwise, I would recommend to distribute it with SCCM. The biggest benefit will be the possibility of reporting the status of deployment, errors in case of any, you will have the posibility to re-run in caz of failure and so on.

 

Anyway, here is an article describing perhaps what you want to achieve: http://www.codeproject.com/Articles/247643/SCCM-2007-User-Interactive-Task-Sequence

 

Regards

Gabriel

Share this post


Link to post
Share on other sites

  • 0

Hi

 

My main reason as to why I do not want to deploy this by SCCM is that this package is 10GB in size and has to be distributed over poor WAN links which is not feasable, so defeat this I run it from network share.

 

I will have a look at the link provided and thanks for the information.

 

Rocket man

Share this post


Link to post
Share on other sites

  • 0

I dont think this is what i am looking for......all i really need is a way to invoke a run command line to point to the script on the network share which in turn runs the software from the network share.

 

I have created vb script and deployed to target machines

 

set shell=createobject("wscript.shell")

shell.run "\\UNC-Path to share /parameters"

set shell=nothing

 

Does not work, continuously says installed without invoking the actual software install

 

I have created vb script and deployed to target machines

 

set shell=createobject("wscript.shell")

shell.run "\\UNC-Path to share\install.vbs"

set shell=nothing

 

Same outcome, but if i browse to share and run vbs it runs

 

If i have the 1st script above on the desktop of the client and run it it installs the software

 

 

I have created a batch file also and deployed it but no luck either.

 

So why does this not work by invoking through command line in SCCM 2012 cscript.exe etc.......

Share this post


Link to post
Share on other sites

  • 0

Update on this....I have tried the network share option and it still will not install....Just out of curiosity i inserted office into the share and tried running it from the share instead of this piece of damn software that is defiant...and Office will install no problem....i guess im just going to have to do with installing it on the image before capture or run it manually by browsing to share :(

 

thanks

 

Rocket Man

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.