Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a login script how do I copy a file to a local machine? 2

Status
Not open for further replies.

pjohnston

IS-IT--Management
Jun 10, 2003
1
US
We just put in a new Symantec AV server and I want to know the easiest way to point all client machines to the new server for updates.
 
pjohnston,

Copy the grc.dat file from the VPHOME share on the AV server to the C:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5 folder. You can use a logon script or GPO for this.(assuming your clients are 2000/XP)

HTH
John
 
I've done what Titleist suggested with NT as well. The path is different though, \winnt\profiles\all users.
 
Heres a the VBScript code for that, I did the same thing at my office, and it worked fine.

--------------------------------
Dim objFSO
Dim strSource, strTarget, bOverwrite

'Set this to true, b/c any GRC.DAT that exists in this folder we want to overwrite
bOverwrite = True

'The GRC.DAT is located in the VPHOME or VPLOGON share on the server that is running System Center
strSource = "\\server\VPLOGON\GRC.DAT"

'Set the target to be the All Users folder in Documents and Settings. (the folders is still called Norton AntiVirus Corporate Edition\7.5 even in version 8.1)

strTarget = "C:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5"

'Create the file system object, this is the scripting object used for file handling
Set objFSO = CreateObject("Scripting.FileSystemObject")

'Copy the file
objFso.CopyFile strSource, strTarget, bOverwrite

'Clean up
Set objFso = Nothing
----------------------------------------
Set it as a startup, or logon script and you should get everyone managed by the end of the day. Just note that the AV service has to be restarted after you do this. Its best just to restart the machine, this will force the AV client to logon to the AV server.

Hope this helps. If you have any questions/problems feel free to ask.

elazar
 
on the NAV/SAV install CD there is a file called 'grcdrop.exe' place this file in the same directory as the grc.dat file.

using what ever script language you use just execute 'grcdrop.exe' this will copy the grc.dat file located in the same dir to the correct location.

Does not matter where you have your NAV/SAV installed it will place the grc.dat file correctly.

if you use groups place a copy of grcdrop.exe into each group folder and have your script execute the correct one and hey presto it is all done for you.

Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top