Home All Groups Group Topic Archive Search About

script for running a file from the server



Author
30 Apr 2007 11:42 AM
Paloma
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

Author
30 Apr 2007 4:17 PM
Richard Mueller [MVP]
Paloma wrote:

> 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
--
Author
2 May 2007 1:42 PM
Paloma
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

AddThis Social Bookmark Button