Link to home
Start Free TrialLog in
Avatar of Fujounou
Fujounou

asked on

Copy a file with the computer configuration script. Permission denny problem

I make a script  that copy a file from the network to the local machine. (script is working #1 once i am logued in)

I am using the script in the machine section so every machine on network are able to have that file updates.

The script is having an permission error.... Can't connect to the network to get my file i presume...

What would be the solution for this matter.

Thanks alot
Avatar of dr_binks
dr_binks

could you paste the error please and the script giving you the problems. cheers.
Avatar of Fujounou

ASKER

Yep i can do that for you with a tiny modification on the name of the computers..

------------------------------------------------------------------------------
VBS Script:
------------------------------------------------------------------------------
dim strSource, strDestination

strSource = "\\xx08xxx00190\asdf$\chma\cfg\TNSNAMES.ORA"
strDestination = "C:\aaa\xxx\NET80\ADMIN\"

Set fso=CreateObject("Scripting.FileSystemObject")
      fso.CopyFile strSource, strDestination, TRUE
------------------------------------------------------------------------------

Error msg: none sinse it's a vbs and it's executed before the loging screen (GPO for the machines opening script)

Script is working num1 if i execute it once i'm logged in.
the user executing the script does have read access on thhose folders.. right?
The user isn't executing the script that's the thing. It's the machine itself that is executing the script from a GPO off my server.
My bad: here's the error that is poping up before the login screen apears:

Title: Windows Script Host
Description: script: \\dnsname...\sysvol\dnsname...\policies\...policies number\machine\scripts\startup\test.vbs
line: 7
caract: 2
error: permission deny
Code: 800A0046
Source: Microsoft VBScript execution error.
ASKER CERTIFIED SOLUTION
Avatar of dr_binks
dr_binks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ya i did put the file somewhere on an other severs out of the sysvol folder architecture... My bad... thanks