Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Denied

Status
Not open for further replies.

tswitz00

IS-IT--Management
Jan 26, 2005
67
US
Hello,

I am trying to run a perl script on my client machine (win xp pro) and basically what it does it just moves a folder from one directory on the server (win server 2003) to another directory on the server. When I try to run it I get an access denied error. So I just tried to use the MOVE command and it still gives me the same message

C:\Documents and Settings\Tim\My Documents\test1>MOVE \\Server\Bankpro\test "\\Server\BPdismis"
Access is denied.

So it looks like a permission problem but I have adminstrative privlages from my client machine, I can navigate to the server though my network places, get on the server and move files to diffrent directories with no problem. Its just when I try to do it from the command prompt. Any suggestions, Ideas?

Thanks
 
I assume you are trying to move the file from client to server.
Accessing the server from share and manipulating files doesn't mean that your script can execute itself in the server. Scripts use different identity over the networks.

Try to schedule this job so you can assign password and user name. Make sure the user name you assign is listed under User rights Assignments of your GPO (Logon as Batch Job and Logon as Service).
Look at Security Event log of the server, you'll see what type of logon your script is using (I think logon type #3)and based on that info, modify your GPO. Logon type #3 requires you to modify Logon as batch job. I might be wrong, it may be Logon as service.

A+, MCP(2003)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top