Jump to content


NobleComputing

Run a Package that contains only a command and no files

Recommended Posts

There has to be a simple answer to this and I am missing it.

 

Here is what I want to run:

MsiExec.exe /X{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00} /qn

 

Really all I need to do is run this command on a remote machine. Is there actually any files in the package? I would think no. Correct me if I am wrong. If it does not contain any files, how do I run the above command on the remote machine? Please advise...

 

Do I have to create a file something.bat and place this command in it? If so, when I the bat file is kicked off, does it execute from the ccmcache folder, the temp directory .. or somewhere else?

 

Share this post


Link to post
Share on other sites


You can try create a custom task sequence and add a run command line task to it with the above syntax as the command. Deploy out to collection with your systems in it.

OR

As you said create a bat file with the command in it, create a package and the program command line will be the name of the bat file, and you can run from distribution point or download first before executing whatever works best.

Share this post


Link to post
Share on other sites

Just create a program/package with no source file. Then deploy it as any other package.

 

Tip make sure that you DON'T sent it to your DPs. This will generate an error and hold up the deployment to your end clients.

Share this post


Link to post
Share on other sites

If you don't need to run it on many devices, why not use PSExec.exe ?

No need for SCCM.

 

Also, if it is an uninstall of an already deployed application, why not deploy it to a collection as an Uninstall?

 

 

post-31237-0-86815900-1484569001.png

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
Reply to this topic...

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