Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: script for running a file from the server

HTVi
TV Discussion Newsgroups

script for running a file from the server
Paloma 4/30/2007 11:42:01 AM
Hello,

I need to run a file from the server to all the computers on the Domain, I
was wondering that if I can do it with a simple script. I used one script
before to change all the postal address for all the user on the AD, but in
this case I am not sure where to start for.
The file extension is .pat and the conditions are:
If the file is already in the computer, update it
if not run it

Any help would be very appreciated.
Thanks

Re: script for running a file from the server
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 4/30/2007 4:17:02 PM
Paloma wrote:

[Quoted Text]
> I need to run a file from the server to all the computers on the Domain, I
> was wondering that if I can do it with a simple script. I used one script
> before to change all the postal address for all the user on the AD, but in
> this case I am not sure where to start for.
> The file extension is .pat and the conditions are:
> If the file is already in the computer, update it
> if not run it

There is a lot involved here. You may be able to use this example VBScript
to deploy executables linked here:

http://www.rlmueller.net/Deploy.htm

This program deploys to the computers in a domain group. You could specify
"Domain Computers". The script copies an executable to each computer and
runs it. The executable could be a batch file that performs the actions you
want.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


Re: script for running a file from the server
Paloma 5/2/2007 1:42:02 PM

Thank you for your script, I think what I need is something simpler, like
run a batch file and then compare the dates.
If date< serverfile
copy serverfile
if not
end

Any idea?thank you for your reply

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen