Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2005-04-18
7
Medium Priority
?
189 Views
Last Modified: 2013-12-04
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
0
Comment
Question by:Fujounou
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:dr_binks
ID: 13808987
could you paste the error please and the script giving you the problems. cheers.
0
 

Author Comment

by:Fujounou
ID: 13809223
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.
0
 
LVL 5

Expert Comment

by:dr_binks
ID: 13809613
the user executing the script does have read access on thhose folders.. right?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Fujounou
ID: 13809713
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.
0
 

Author Comment

by:Fujounou
ID: 13809952
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.
0
 
LVL 5

Accepted Solution

by:
dr_binks earned 750 total points
ID: 13810037
does it doe the rest of the logon script OK.. or does it not run it at all... because it looads like you dont have read permission for \\dnsname...\sysvol\dnsname...\policies\...policies number\machine\scripts\startup\test.vbs which is strange because bny default AD gives all users read permissions for the sysvol stuff.
0
 

Author Comment

by:Fujounou
ID: 13815057
Ya i did put the file somewhere on an other severs out of the sysvol folder architecture... My bad... thanks
0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses
Course of the Month15 days, 5 hours left to enroll

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question