Re: Batch files with SMS?



On Oct 8, 4:12 am, Tom Watson <TomWat...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
One thing to beware of when running batch files with SMS is the combination
of your Advert and Program properties.  As Jeff mentions you can either
specify to map a drive, or to download and execute.  However, do NOT do both,
as they conflict with one another, and you get very little in terms of
warnings in the console about this, apart from a failed advertisement.

For mapping a drive, this is set in the Package>Program>Environment>Drive
mode section.

For download and execute, this is set in the Advertisement>Advanced Client
tab.

Remember - do NOT do both.  Pick one method or the other.



"Garth" wrote:
Batch file do work.. however if you don't need, then don't use them..

Try this trick on a WS, open command prompt, Schedule CMD.exe to run
interactively a few minute in the future.

AT 14:33 /INTERACTIVE cmd.exe

When the new CMD opens

Try your command line again. Also add you might want to add the /log to your
command line to see what error is generated.

"Barkley Bees" <barkleyb...@xxxxxxxxxxx> wrote in message
news:%234nNg3IKJHA.728@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for your reply Garth. I should have explained the reason for my
wanting to use a batch file (it is my previous thread subject: Upgrading
SAV 10.1 users via SMS2003).
The problem I am having with SMS using the command line (Setup.exe /S
/v"/qn+ REBOOT=ReallySuppress") is that it appears to ignore the part that
is in quotes so it doesn't suppress the reboot.
That command string, of course, works correctly when I run it from a dos
command line of course but not when it is configured to the SMS package
program (not sure why though). This is why I am exploring the batch file
option.
I won't be using any UNC paths as the package contents will be downloaded
to the local PC's SMS cache. Will the SMS advert run a .bat instead of a
.exe if it is assigned to the package program?

"Garth" <S...@xxxxxxx> wrote in message
news:221B7A66-F946-4C00-9F7A-ABDECD3C6B40@xxxxxxxxxxxxxxxx
Keep in mind that if you are using the local system account to install an
application it will not have access to anything off the local PC
therefore UNC paths installs will fail.

If that is your entire batch file why use a batch file at all? You are
adding complexity for no reason.

Why not use the command line of Setup.exe /S /v"/qn+
REBOOT=ReallySuppress" within your SMS package?

"Barkley Bees" <barkb...@xxxxxxxxxx> wrote in message
news:%23baCAWFKJHA.2208@xxxxxxxxxxxxxxxxxxxxxxx
In another thread (Upgrading SAV 10.1 users via SMS2003?) I described a
problem I am having with SMS 2003 running the command line I am
specifying for the package program. SMS seems to ignore the variables in
the quotes that are meant to be passed on the msiexec. Anyhow, despite
my efforts I was not able to get SMS to do what I need.

As a last resorts I am thinking to create a batch file and put it in the
source directory for this package and have the program run the batch
file instead. The package will be set to download and be cached locally
on the target systems (this would do away with UNC issues with the batch
file).

I'm a little lost on using batch files with SMS though. I plan to simply
add the below to a file "start.bat" and select the package program to
run it.

@echo off
Setup.exe /S /v"/qn+ REBOOT=ReallySuppress"

Does the file need to be saved as .cmd or .bat? One unfortunate side
effect will be the blank dos box that will pop-up during the setup. Can
this be avoided by using vbs instead of a bat? Searching didn't seem to
come up with the results to help me out unfortunately. Appreciate any
advice/pointers. Thank you.- Hide quoted text -

- Show quoted text -

Have you tried an SMS command line of:

Setup.exe /S /v /qn+ REBOOT=ReallySuppress

If so what happens?

We are using similiar command lines for Setups that allow MSIEXEC
options.
.



Relevant Pages

  • Re: Ran ccmclean on site server, what are implications???
    ... i ran the synctool command line in a cmd running under system account using ... The sync tool only has to retrieve the files from the distribution share ... only created the package folder. ... baffles me that the advanced client that resides on the sms ...
    (microsoft.public.sms.setup)
  • Re: Ran ccmclean on site server, what are implications???
    ... Command line specified package to update on DPs as SYS00032 ... Execution Request for program Microsoft Updates Tool Sync state change from ... baffles me that the advanced client that resides on the sms ...
    (microsoft.public.sms.setup)
  • Re: BITS and SMS
    ... you can set the advertisement for a specific ... BITS should download the package from the DP to the clinet ... I've set the advertisement to download the package for the ... Kim Oppalfens - Sms Expert for lack of any other expertise ...
    (microsoft.public.sms.swdist)
  • pypi and easy_install
    ... I noticed tonight that I can't download/install a package of mine ... options (after parsing command line): ... Reading http://pypi.python.org/simple/pyftpdlib/ ... No local packages or download links found for pyftpdlib ...
    (comp.lang.python)
  • Re: actxprxy.dll How to register on clients
    ... Here's a clip from myitforum.com (good resource for sms questions) ... You create packages without source files by not selecting the checkbox ... entitled 'This package contains source files' when you setup your package ... You could specify as your command line ...
    (microsoft.public.sms.misc)