Re: Batch files with SMS?
- From: GMLTech <gmltech@xxxxxxxxx>
- Date: Wed, 8 Oct 2008 11:19:26 -0700 (PDT)
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.
.
- References:
- Batch files with SMS?
- From: Barkley Bees
- Re: Batch files with SMS?
- From: Garth
- Re: Batch files with SMS?
- From: Barkley Bees
- Re: Batch files with SMS?
- From: Garth
- Re: Batch files with SMS?
- From: Tom Watson
- Batch files with SMS?
- Prev by Date: Re: Modify SMS 2003 query
- Next by Date: Re: Renaming NetBIOS name...
- Previous by thread: Re: Batch files with SMS?
- Next by thread: verbose logging smsbkup.log
- Index(es):
Relevant Pages
|