Re: Remove programs with a script?
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 May 2007 17:41:26 -0600
"Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message
news:eI6xEGnnHHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
Alternately, you could create another batch script that would run
"uninst_notes.bat" on the other workstations using PSexec from the
PSTools "SysInternals" package (see
http://www.microsoft.com/technet/sysinternals/default.mspx). Whether
or not this will work for you will depend to some extent on the
content of the "uninst_notes.bat" file.
Good suggestion -- but it too has the same administrator access and remote
impersonated account constraints.
Fortunately for us all you cannot generally run things remotely without
actually being an admin ;-)
As for the remote impersonation thing, you're right. But some might find
PSexec's way of managing this less non-intuitive.
And it also would require the *.bat/cmd file to be copied to the remote
machine and explicitly referenced via a local path (relative to process
executed) on the remote machine.
The /c switch causes PSexec to copy the file to the target system for you,
run it, and then delete it, so you can avoid some of the details. I
typically run a small batch file that way that calls a batch script back on
the server.
I made the suggestion, because it seemed to me that the OP was getting a
little bit hung up in vbscript issues, which seems an unfortunate problem
for someone who just wants to run a batch script.
/Al
--
Michael Harris
Microsoft.MVP.Scripting
.
- References:
- Remove programs with a script?
- From: William Stokes
- Re: Remove programs with a script?
- From: Shenan Stanley
- Re: Remove programs with a script?
- From: asdf
- Re: Remove programs with a script?
- From: William Stokes
- Re: Remove programs with a script?
- From: William Stokes
- Re: Remove programs with a script?
- From: Michael Harris \(MVP\)
- Re: Remove programs with a script?
- From: Al Dunbar
- Re: Remove programs with a script?
- From: Michael Harris \(MVP\)
- Remove programs with a script?
- Prev by Date: txt file as parameter list?
- Next by Date: Re: txt file as parameter list?
- Previous by thread: Re: Remove programs with a script?
- Next by thread: Re: Whats going on in this bat file?
- Index(es):
Relevant Pages
|