Solved

Group Policy or Logon Script

Posted on 2009-05-18
3
584 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

718 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