We are trying to copy the new GRC.dat file to all our machines to update the Managed Server to the new server and to make sure all computers are managed. We are doing this through Group Policy Startup Scripts. We get "Permission Denied" on this:
oFSO.CopyFile strSourceFile, strDestination, OverwriteExisting
Any help will be appreciated.
<job id="main">
<script language="VBScript">
WScript.Echo "VBScript"
Set oFSO = CreateObject("Scripting.FileSystemObject")
CopyGRC
Wscript.Echo "Done"
'********************************************************************************************************************************************
'Copy GRC.dat to the Target Machine
Function CopyGRC
Const OverwriteExisting = True
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = WScript.CreateObject("WScript.Shell")
strSourceFile = "\\ufadata\shared\scriptfiles\GRC.DAT"
strDestination = objShell.ExpandEnvironmentStrings("%ALLUSERSPROFILE%") & "\" & "Application Data\Symantec\Symantec AntiVirus Corporate Edition\7.5\"
oFSO.CopyFile strSourceFile, strDestination, OverwriteExisting
Wscript.Echo "GRC.DAT is copied over"
End Function
'**********************************************************************************************************************************************
</script>
</job>
oFSO.CopyFile strSourceFile, strDestination, OverwriteExisting
Any help will be appreciated.
<job id="main">
<script language="VBScript">
WScript.Echo "VBScript"
Set oFSO = CreateObject("Scripting.FileSystemObject")
CopyGRC
Wscript.Echo "Done"
'********************************************************************************************************************************************
'Copy GRC.dat to the Target Machine
Function CopyGRC
Const OverwriteExisting = True
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = WScript.CreateObject("WScript.Shell")
strSourceFile = "\\ufadata\shared\scriptfiles\GRC.DAT"
strDestination = objShell.ExpandEnvironmentStrings("%ALLUSERSPROFILE%") & "\" & "Application Data\Symantec\Symantec AntiVirus Corporate Edition\7.5\"
oFSO.CopyFile strSourceFile, strDestination, OverwriteExisting
Wscript.Echo "GRC.DAT is copied over"
End Function
'**********************************************************************************************************************************************
</script>
</job>