HELP: A required privilege is not held by the client. 
Author Message
 HELP: A required privilege is not held by the client.

I get "A required privilege is not held by the client. " when trying to
query IIS with VBScript in ASP.

What is wrong?

Brian
My script is below if you are curious.

<%

 Set IISOBJ = getObject("IIS://" & strserver & "/W3SVC")
 For each object in IISOBJ
 if (Object.Class = "IIsWebServer") then
 WScript.Echo "IIsWebServer " & Object.Name & " - " & Object.ServerComment
 rootsitenumber=object.name

 'Get ROOT website info
 Set IISpath = getObject("IIS://" & strServer & "/W3SVC/" & rootsitenumber &
"/root")

 'Set Root Web Variables
 systemname=strserver
 rootsitenumber = object.Name
 rootservercomment = object.ServerComment
 rootAnonymousUserName = object.AnonymousUserName
 rootAnonymousUserPass = object.AnonymousUserPass
 rootServerBindings = object.ServerBindings
 rootAuthAnonymous = object.AuthAnonymous
 rootAuthBasic = object.AuthBasic
 rootHttpCustomHeaders = object.HttpCustomHeaders
 rootEnableDirBrowsing = object.EnableDirBrowsing
 rootAccessExecute = object.AccessExecute
 rootAccessRead = object.AccessRead
 rootAccessWrite = object.AccessWrite
 rootAccessSource = object.AccessSource
 rootAccessSSL = object.AccessSSL
 rootAppIsolated = object.AppIsolated
 rootAppFriendlyName = object.AppFriendlyName
 rootpath = iispath.path
 end if
 next
 %>
<font face="Verdana" size="1">
<img src="images/expandplus2.gif" align="absmiddle">
<img src="images/websiteicon2.gif" align="absmiddle">?
</font>



Sat, 16 Oct 2004 05:15:14 GMT  
 HELP: A required privilege is not held by the client.


Fri, 19 Jun 1992 00:00:00 GMT  
 HELP: A required privilege is not held by the client.

Quote:
> I get "A required privilege is not held by the client. " when trying
> to query IIS with vbscript in ASP.

> What is wrong?

You probably aren't requiring authenticated access.  The anonymous IIS accounts aren't going to work ;-)...

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Sat, 16 Oct 2004 07:20:06 GMT  
 HELP: A required privilege is not held by the client.

Quote:
> I get "A required privilege is not held by the client. " when trying
> to query IIS with vbscript in ASP.

> What is wrong?

You probably aren't requiring authenticated access.  The anonymous IIS accounts aren't going to work ;-)...

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Sat, 16 Oct 2004 07:20:06 GMT  
 HELP: A required privilege is not held by the client.
The web server hosting the vbscript in the asp page I am working on is
querying itself and another server on the domain, for IIS specific info
using ADSI to gather that data.  Apparently, IIS does not like being queried
becuase this doesnt want to work. :(

Server 1 is hosting a page that queries Server 2's metabase.  but the
authentication or something else it blocking it.  IIS on Server 1 is running
under a domain admin account that has 'act as OS' turned on in the local
security policy on Server 2.  There should be no security auth issues as far
as I can see, unless I am neglecting to pass the auth variables in my
script.. but if my IIS domain admin user that the service is running under
is logging on fine, that shouldnt be an issue should it?

Wow.. really stummped here :(

seemingly simple problem.. --how to query the IIS metabase from one server
to another using asp/vbscript.

seems to be no solution, but I cant believe this hasnt been done before..

Brian



Quote:
> I get "A required privilege is not held by the client. " when trying
> to query IIS with vbscript in ASP.

> What is wrong?

You probably aren't requiring authenticated access.  The anonymous IIS
accounts aren't going to work ;-)...

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Sat, 16 Oct 2004 08:11:12 GMT  
 HELP: A required privilege is not held by the client.

Quote:
> ...  IIS on Server 1 is
> running under a domain admin account that has 'act as OS' turned on
> in the local security policy on Server 2...

ooh...are you really sure you want to do that?

Your posted code works (more or less ;-) for me with strserver = "localhost" and accessing the page using NTLM authentication.  If I switch to allow anonymous, I get permission denied on the GetObject call.

To go to a 2nd server, I assume you will need to either use Basic Authentication or use the OpenDSObject method with proper credentials.  I don't have access here at home to a 2nd IIS server so I can't test...  

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Sat, 16 Oct 2004 08:48:38 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. URGENT HELP REQUIRE===>Does not work on client machine

2. Sfimpersonator.dll - required privilege

3. Required privilege using SFImpersonator.dll

4. If the Ftp_Server have no file.......the program will hold and not working ....please help me~

5. If the Ftp_Server have no file.......the program will hold and not working ......please help me~

6. How to programing client to access the server require Client Certificate

7. I am trying to update a record, i am not using data control

8. I am trying to update a record, i am not using data control

9. Holding up a client while server app proceeds ???

10. To check Administrative Privilege or not

11. ScaleHeight/ScaleWidth with borderless form - Not working, please help I am stumped

12. help required for updateevent not working??

 

 
Powered by phpBB® Forum Software