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
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
could you paste the error please and the script giving you the problems. cheers.
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\TNSNA MES.ORA"
strDestination = "C:\aaa\xxx\NET80\ADMIN\"
Set fso=CreateObject("Scriptin g.FileSyst emObject")
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.
--------------------------
VBS Script:
--------------------------
dim strSource, strDestination
strSource = "\\xx08xxx00190\asdf$\chma
strDestination = "C:\aaa\xxx\NET80\ADMIN\"
Set fso=CreateObject("Scriptin
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?
ASKER
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.
ASKER
My bad: here's the error that is poping up before the login screen apears:
Title: Windows Script Host
Description: script: \\dnsname...\sysvol\dnsnam e...\polic ies\...pol icies number\machine\scripts\sta rtup\test. vbs
line: 7
caract: 2
error: permission deny
Code: 800A0046
Source: Microsoft VBScript execution error.
Title: Windows Script Host
Description: script: \\dnsname...\sysvol\dnsnam
line: 7
caract: 2
error: permission deny
Code: 800A0046
Source: Microsoft VBScript execution error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ya i did put the file somewhere on an other severs out of the sysvol folder architecture... My bad... thanks