Solved

Group Policy or Logon Script

Posted on 2009-05-18
3
578 Views
Last Modified: 2013-12-12
I have a server based application all my users use on a regular basis. This is a custom written program (not by me) & requires that a file be written to the root of the users C drive. In the past we have went around to each users computer with a pen drive & added the file to the root of C. Now, we've taken on merged departments & our total user count has jumped from around 75 users to over 500. My question is, is there a way for me to push this file out via group policy or with a VB script? Either way will work for me. Thanks
0
Comment
Question by:wantabe2
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Gunter17
Comment Utility
Abolsutely, you can use either to do it.

Via a group policy you can create a simple batch file that does the copying for you (assuming the user that is logging in has access to the directory you want to write to.

Here's an example of the "copy" command, for single file use.
http://www.computerhope.com/copyhlp.htm

And here's one for "xcopy" command, for multiple file use (e.g *.*)
http://www.computerhope.com/xcopyhlp.htm


0
 
LVL 15

Author Comment

by:wantabe2
Comment Utility
One more question, I forgot to mention, I will be doing this because of an upgrade. I will need to copy a file to each users computer but before I do this, is there a way for me to delete the old outdated file before I place the new updated file in the directory?
0
 
LVL 6

Accepted Solution

by:
Gunter17 earned 500 total points
Comment Utility
Sure, in your batch file you can just do a del

Your batch file might look something like this:
del C:\oldfile.db

copy \\server\share\newfile.db C:\newfile.db

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now