Question Locked

replacing a document using active directory

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi all,
I need to replace a document that contains the settings for a program called TypeQuik. This needs to be replaced because the original settings no longer work. I would like to be able to do this via active directory or group policy and as such require help in writing a script to perform this file replacement. any ideas as to how to go about this would be appreciated. Am running a domain environment using Windows Server 2003 (various editions) and windows xp sp2. The active directory computer is running windows server 2003 enterprise edition sp2.

2 replies

by rob miners

You can update all of the Workstations at once using this technique.

Create and run this from the file server. You will need 2 files. The first one is the .bat the second is a text file with a list of workstations that you need to add to in the same format.
C:\test is a folder on the File Server, place the file that you want copied in there. If the file exists on the Workstation it will be overwritten.

File 1 = copyto.bat

FOR /F " tokens=1 " %%i in (WS.txt) do copy C:\test\*.* "%%i\C$\Program Files\TypeQuik"

Put your files that you want copied into a folder EG: c:\test

File 2 = WS.txt

\\ws01.minero.local
\\ws02.minero.local

< I must be a bit slow today :) >

This is the second time that I have offerd a way to achieve this.

This discussion is closed to new replies.