Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Group Policy or Logon Script

Posted on 2009-05-18
3
Medium Priority
?
589 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
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…

618 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