Solved

Group Policy or Logon Script

Posted on 2009-05-18
3
579 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
ID: 24413986
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
ID: 24414148
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
ID: 24414269
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VTP LOG RUNTTIME ERROR 31 139
What interoffice LAN only messenger is recommended? 5 71
All doc, xls, and pdf's are gone 9 81
Magic Software info 18 125
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.
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

19 Experts available now in Live!

Get 1:1 Help Now