++++Replace a file with a new one++++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

There is a file on PCs, that need to be replaced with a new one. What is the
better way to do it with a GPO in one shot without requiring users to
re-loggon or re-boot? Thanks.
 
There is a file on PCs, that need to be replaced with a new one. What is the
better way to do it with a GPO in one shot without requiring users to
re-loggon or re-boot? Thanks.


You need to answer the following questions.

Is this an operating system file, protected in the DLLCACHE (Windows File Protection)?
Is the file in use?
If it is in use, what is using it? Can it be stopped?

It would also help to give the full path and file name.


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
It's ini file on C: drive.

Jerold Schulman said:
You need to answer the following questions.

Is this an operating system file, protected in the DLLCACHE (Windows File Protection)?
Is the file in use?
If it is in use, what is using it? Can it be stopped?

It would also help to give the full path and file name.


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
It's ini file on C: drive.

OK, you answered c:\someplace\someini.ini is NOT in use.

The esiest way is to run a script from your workstation.

Use NetViewC.bat from tip 8278 in the 'Tips & Tricks' at http://www.jsiinc.com

@echo off
setlocal ENABLEDELAYEDEXPANSION
for /f "Tokens=*" %%c in ('netviewc') do (
if exist %%c\c$\someplace\someini.ini copy c:\someplace\someini.ini %%c\c$\someplace\someini.ini
)

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
We need to do it in ONE shot. I can easily to do it by using GPO with script
but that require user to reboot or relogon to get the script excuted. It is
NOT what we want. We need to do it without to ask users to do anything.
Thanks.
 
The script I gave you does it in ONE shot and doesn't ask the user for anything and doesn't require a logoff or restart??????


We need to do it in ONE shot. I can easily to do it by using GPO with script
but that require user to reboot or relogon to get the script excuted. It is
NOT what we want. We need to do it without to ask users to do anything.
Thanks.


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top