Running a DOS command using IIS, receive "Access Denied" error

From: 3dot14 (3dot14_at_discussions.microsoft.com)
Date: 02/28/05


Date: Mon, 28 Feb 2005 13:47:08 -0800

Hi all!

Here is my situation in a nutshell:
I have three computers. Server, Source and Destination.
All Source and Destination each has a shared folder, say "\shared". I
personally have permissions into both of them, but they are not accessible to
everyone.
I have a batch file on Server, that does something like (it includes a
couple more commands, but the main purpose is copying files)
"copy \\source\shared\poo.txt \\destination\shared\"
(the batch file works, because if I manually launch it, it completes its
task no problem)

I have been trying to run this batch file on the server.
I have write Server.CreateObject (WScript.WShell) and 3rd party component
(AspExec from http://www.serverobjects.com/products.htm#free)

But seems they have the same problem. They receive "access denied" error
when accessing the remote directories.

Is there a way I can enforce IIS to run the bat file with my authentication?

Thanks in advance!



Relevant Pages

  • Re: Map Drive Question
    ... This is my batch file: ... when i restart this server i don't see the map drive X. ... I need to login to server to restore map drives. ... Is any other way to reconnect to a shared folder on another server ...
    (microsoft.public.windows.server.general)
  • Re: SPBackup utility failing
    ... generates a batch file that, when run on a server running Windows SharePoint ... backs up changed site collections using the Stsadm.exe tool. ... >> Mike Walsh, Helsinki, Finland ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... without seeing the whole batch file I am unable to offer any further ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)
  • RE: Windows 2003 Server Terminal Services
    ... I tried the first .bat idea, and though it worked, it left the batch file ... accessing applications which they should run. ... MCSE, CCEA, Microsoft MVP - Terminal Server ... Terminal Server role and the Terminal Services Licensing ...
    (microsoft.public.windows.terminal_services)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... Since you can't post the whole batch file, I can only offer some hints: ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)

Quantcast