Skip to content

Running Command line Help

Featured Replies

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

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

  • Author

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

  • Author

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.......

  • Author

I never thought of that Peter....sounds promising.......Will not be able to try this until next week....will post then how I get on

 

Thanks

 

Rocket man

Are you sure that your Network Access Account has the permission to read from the share?

  • Author

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

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.