Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
scripts
hosting
jscript
remote
scripting.wsh
scriptlets
vbscript
virus.discussion
  
 
date: Tue, 08 Jul 2008 21:44:10 +0200,    group: microsoft.public.scripting.wsh        back       


Permissions different for WshShell and .exe in Server 20003 SP1 and SP2 ?   
Been struggling with this for hours now !

Here"s my problem, I have an .exe I run using this script in aso code:
in the download.asp file.

88 : Set WshShell = Server.CreateObject("Wscript.Shell")
89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
90 : Set WshShell=nothing

I've given read and execute to code.exe to everyone and intenet gues
and its read and write paths on C:\ are authorized as well.

Now this works fine on my old Windows Server 2003 server with SP1 on
it but I just can't get it to run on my new server with SP2, I always
get this error

"Microsoft VBScript runtime error '800a0046' 
Permission denied 
/abc/download.asp, line 89 "


Does SP2 do things differently ? Do I need to authorize acces to some
kind of virtual directory used by the the .exe to run maybe ?

TIA !
date: Tue, 08 Jul 2008 21:44:10 +0200   author:   Keith

Re: Permissions different for WshShell and .exe in Server 20003 SP1 and SP2 ?   
"Keith"  wrote in message 
news:0fg774hch8qtkelou5fckqfjs1i69ptpfr@4ax.com...
> Been struggling with this for hours now !
>
> Here"s my problem, I have an .exe I run using this script in aso code:
> in the download.asp file.
>
> 88 : Set WshShell = Server.CreateObject("Wscript.Shell")
> 89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
> 90 : Set WshShell=nothing
>
> I've given read and execute to code.exe to everyone and intenet gues
> and its read and write paths on C:\ are authorized as well.
>
> Now this works fine on my old Windows Server 2003 server with SP1 on
> it but I just can't get it to run on my new server with SP2, I always
> get this error
>
> "Microsoft VBScript runtime error '800a0046'
> Permission denied
> /abc/download.asp, line 89 "
>
>
> Does SP2 do things differently ? Do I need to authorize acces to some
> kind of virtual directory used by the the .exe to run maybe ?
>
> TIA !

- Shouldn't it be
  88 : Set WshShell = WScript.CreateObject("Wscript.Shell")
  89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
- What happens when you run "D:\DATAII~1\xyz\abc\code.exe xyz"
  from a Command Prompt?
date: Tue, 8 Jul 2008 23:13:15 +0200   author:   Pegasus \(MVP\)

Re: Permissions different for WshShell and .exe in Server 20003 SP1 and SP2 ?   
>> 88 : Set WshShell = Server.CreateObject("Wscript.Shell")
>> 89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
>> 90 : Set WshShell=nothing
>> Now this works fine on my old Windows Server 2003 server with SP1 on
>> it but I just can't get it to run on my new server with SP2, I always
>> get this error
>>
>> "Microsoft VBScript runtime error '800a0046'
>> Permission denied
>> /abc/download.asp, line 89 "
>>
>>
>> Does SP2 do things differently ? Do I need to authorize acces to some
>> kind of virtual directory used by the the .exe to run maybe ?
>>
>> TIA !
>
>- Shouldn't it be
>  88 : Set WshShell = WScript.CreateObject("Wscript.Shell")
>  89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
>- What happens when you run "D:\DATAII~1\xyz\abc\code.exe xyz"
>  from a Command Prompt?

It runs fine, no errors.
I tried to replace Server.CreateObject by WScript.CreateObject as you
suggested but I get :
"Microsoft VBScript runtime error '800a01a8' 
Object required: 
/abc/download.asp, line 87'' 

Did you suggest this because running an .exe is done differently
betwwen SP1 and SP2 ?

Thanks for your help.
date: Wed, 09 Jul 2008 02:26:44 +0200   author:   Keith

Re: Permissions different for WshShell and .exe in Server 20003 SP1 and SP2 ?   
"Keith"  wrote in message 
news:k418745g6a17b1k64cbv4l2v0os6cu380q@4ax.com...
>>> 88 : Set WshShell = Server.CreateObject("Wscript.Shell")
>>> 89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
>>> 90 : Set WshShell=nothing
>>> Now this works fine on my old Windows Server 2003 server with SP1 on
>>> it but I just can't get it to run on my new server with SP2, I always
>>> get this error
>>>
>>> "Microsoft VBScript runtime error '800a0046'
>>> Permission denied
>>> /abc/download.asp, line 89 "
>>>
>>>
>>> Does SP2 do things differently ? Do I need to authorize acces to some
>>> kind of virtual directory used by the the .exe to run maybe ?
>>>
>>> TIA !
>>
>>- Shouldn't it be
>>  88 : Set WshShell = WScript.CreateObject("Wscript.Shell")
>>  89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
>>- What happens when you run "D:\DATAII~1\xyz\abc\code.exe xyz"
>>  from a Command Prompt?
>
> It runs fine, no errors.
> I tried to replace Server.CreateObject by WScript.CreateObject as you
> suggested but I get :
> "Microsoft VBScript runtime error '800a01a8'
> Object required:
> /abc/download.asp, line 87''
>
> Did you suggest this because running an .exe is done differently
> betwwen SP1 and SP2 ?
>
> Thanks for your help.

The confusion is because this is a WSH group, and yours is an ASP 
application.

That said, I would tend to code the .run as:

    >>  89 : WshShell.run """D:\DATAII~1\xyz\abc\code.exe"" xyz"

however, perhaps the issue is that the service account that actually runs 
ASP code on the server, which typically has little access to the system for 
security reasons, may lack the access required to the .exe itself.

/Al
date: Wed, 9 Jul 2008 00:15:20 -0600   author:   Al Dunbar aam

Re: Permissions different for WshShell and .exe in Server 20003 SP1 and SP2 ?   
On Wed, 09 Jul 2008 02:26:44 +0200, Keith  wrote:

>>> 88 : Set WshShell = Server.CreateObject("Wscript.Shell")
>>> 89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
>>> 90 : Set WshShell=nothing
>>> Now this works fine on my old Windows Server 2003 server with SP1 on
>>> it but I just can't get it to run on my new server with SP2, I always
>>> get this error
>>>
>>> "Microsoft VBScript runtime error '800a0046'
>>> Permission denied
>>> /abc/download.asp, line 89 "
>>>
>>>
>>> Does SP2 do things differently ? Do I need to authorize acces to some
>>> kind of virtual directory used by the the .exe to run maybe ?
>>>
>>> TIA !
>>
>>- Shouldn't it be
>>  88 : Set WshShell = WScript.CreateObject("Wscript.Shell")
>>  89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
>>- What happens when you run "D:\DATAII~1\xyz\abc\code.exe xyz"
>>  from a Command Prompt?
>
>It runs fine, no errors.
>I tried to replace Server.CreateObject by WScript.CreateObject as you
>suggested but I get :
>"Microsoft VBScript runtime error '800a01a8' 
>Object required: 
>/abc/download.asp, line 87'' 
>
>Did you suggest this because running an .exe is done differently
>betwwen SP1 and SP2 ?
>
>Thanks for your help.
>
Anyone ?
date: Thu, 17 Jul 2008 12:16:43 +0200   author:   Keith

Re: Permissions different for WshShell and .exe in Server 20003 SP1 and SP2 ?   
On 17 jul, 07:16, Keith  wrote:
> On Wed, 09 Jul 2008 02:26:44 퍭, Keith  wrote:
> >>> 88 : Set WshShell = Server.CreateObject("Wscript.Shell")
> >>> 89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
> >>> 90 : Set WshShell=nothing
> >>> Now this works fine on my old Windows Server 2003 server with SP1 on
> >>> it but I just can't get it to run on my new server with SP2, I always
> >>> get this error
>
> >>> "Microsoft VBScript runtime error '800a0046'
> >>> Permission denied
> >>> /abc/download.asp, line 89 "
>
> >>> Does SP2 do things differently ? Do I need to authorize acces to some
> >>> kind of virtual directory used by the the .exe to run maybe ?
>
> >>> TIA !
>
> >>- Shouldn't it be
> >>  88 : Set WshShell = WScript.CreateObject("Wscript.Shell")
> >>  89 : WshShell.run "D:\DATAII~1\xyz\abc\code.exe xyz"
> >>- What happens when you run "D:\DATAII~1\xyz\abc\code.exe xyz"
> >>  from a Command Prompt?
>
> >It runs fine, no errors.
> >I tried to replace Server.CreateObject by WScript.CreateObject as you
> >suggested but I get :
> >"Microsoft VBScript runtime error '800a01a8'
> >Object required:
> >/abc/download.asp, line 87''
>
> >Did you suggest this because running an .exe is done differently
> >betwwen SP1 and SP2 ?
>
> >Thanks for your help.
>
> Anyone ?- Ocultar texto entre aspas -
>
> - Mostrar texto entre aspas -

Did you get a solution for this issue? I'm struggling with it for
several hours now and i can't seem to find what may do any good.
date: Wed, 27 Aug 2008 10:07:34 -0700 (PDT)   author:   ravena

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us