Troubles connecting to 'WinNT://' provider

From: A.Klimkin (aklimkin)
Date: 07/28/05


Date: Thu, 28 Jul 2005 14:44:22 +0400

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



Relevant Pages

  • Re: Passing values between files
    ... I have got the .wsf file calling the the ... > .vbs file OK with the following script block as you suggested; ... it is the scripting host that executes code ...
    (microsoft.public.scripting.wsh)
  • Re: .vbs file only locks up inside a batch file.. why?
    ... didn't read your vb script better; here is your answer; you can close ... But to get the vbs file to ... >>>release control back the batch file that it was called from, ... >>>>rem close cd/dvd drives ...
    (microsoft.public.scripting.vbscript)
  • Re: Calling functions in another .VBS
    ... Referencing a .vbs file from a .wsf file is, imho, the simplest approach ... then any script that needs any one of those functions will wind ... The other .vbs your .wsf file would include would contain the LoadFromLib ... re-defining the MatMult function from *within* the dummy function itself). ...
    (microsoft.public.scripting.vbscript)
  • Re: Calling functions in another .VBS
    ... Referencing a .vbs file from a .wsf file is, imho, the simplest approach ... then any script that needs any one of those functions will wind ... The other .vbs your .wsf file would include would contain the LoadFromLib ... re-defining the MatMult function from *within* the dummy function itself). ...
    (microsoft.public.scripting.wsh)
  • Re: .vbs file only locks up inside a batch file.. why?
    ... instance in the Task Manager indicating that the script engine instance was ... The CD drawer does close with the double .Eject method in the script. ... But to get the vbs file to ... >>>release control back the batch file that it was called from, ...
    (microsoft.public.scripting.vbscript)