jerphillips
MIS
Hey guys I get the following error when I run a VBS Logon Script through Active Directory:
Line: 19
Char: 1
Error: Premissions Denied
Code: 800A0046
Source: Microsoft VBScript Runtime Error
This is the Script I'm running:
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
Any Ideas?
Line: 19
Char: 1
Error: Premissions Denied
Code: 800A0046
Source: Microsoft VBScript Runtime Error
This is the Script I'm running:
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
Any Ideas?