IIS Server - Troubles connecting to 'WinNT://' provider

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > July 2005 > Troubles connecting to 'WinNT://' provider





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Troubles connecting to 'WinNT://' provider
A.Klimkin

2005-07-28, 7:50 am

Hi there!
I've got the following VB script:

Set Group=GetObject("WinNT://MyDomain/Domain Admins")
Set User=GetObject("WinNT://MyDomain/SomeUser")
Wscript.Echo Group.IsMember(User.ADsPath)

Being placed in .vbs file and ran with wscript shell, this code works just
fine and returns '-1' (which means 'TRUE', I suppose).
Being placed in .asp file and ran on IIS6.0 via client browser, returns
'80070035' error (something like 'The network path was not found.')

What is the problem and which steps could I take to workaround this?

Thanks in advance,
Andrew


Kristofer Gafvert [MVP]

2005-07-29, 6:00 pm

Probably because the user you are using to run the ASP file does not have
permissions to query a domain controller. When you run your vbs-script
however, you run it using your account, which may have more powerful
permissions.


--
Regards,
Kristofer Gafvert (IIS MVP)
http://www.gafvert.info - Articles and help


A.Klimkin wrote:

>Hi there!
>I've got the following VB script:
>
>Set Group=GetObject("WinNT://MyDomain/Domain Admins")
>Set User=GetObject("WinNT://MyDomain/SomeUser")
>Wscript.Echo Group.IsMember(User.ADsPath)
>
>Being placed in .vbs file and ran with wscript shell, this code works just
>fine and returns '-1' (which means 'TRUE', I suppose).
>Being placed in .asp file and ran on IIS6.0 via client browser, returns
>'80070035' error (something like 'The network path was not found.')
>
>What is the problem and which steps could I take to workaround this?
>
>Thanks in advance,
>Andrew

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com