detect whether a user logs on as an administrator or limited
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
detect whether a user logs on as an administrator or limited

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
Ling
Guest





Posted: Thu Jan 06, 2005 6:15 am    Post subject: detect whether a user logs on as an administrator or limited Reply with quote

I need to display extra page content (.asp file) for users with administrator
rights on Windows XP SP2 machines. I can detect whether the client is using
Windows XP SP2 quite easily. But, how could I detect whether a user has
logged on as a limited user or an administrator?

Any help is appreciated.
Back to top
Al Dunbar [MS-MVP]
Guest





Posted: Fri Jan 07, 2005 6:05 am    Post subject: Re: detect whether a user logs on as an administrator or lim Reply with quote

"Ling" <Ling@discussions.microsoft.com> wrote in message
news:E5F52DBE-4FC3-4AE0-943E-6BCCE2DF2B27@microsoft.com...
Quote:
I need to display extra page content (.asp file) for users with
administrator
rights on Windows XP SP2 machines. I can detect whether the client is
using
Windows XP SP2 quite easily. But, how could I detect whether a user has
logged on as a limited user or an administrator?

Your ASP code is server-side, so I am not sure how it could detect the
privilege level the user has on the client machine. Even if you ran the code
browser-side, I would think the broswer security settings should balk at
whatever it would take to make that determination.

/Al
Back to top
Ling
Guest





Posted: Fri Jan 07, 2005 12:19 pm    Post subject: Re: detect whether a user logs on as an administrator or lim Reply with quote

Yes, it has to be some client side scripting like what I did to detact the OS
with javascript.

"Al Dunbar [MS-MVP]" wrote:

Quote:

"Ling" <Ling@discussions.microsoft.com> wrote in message
news:E5F52DBE-4FC3-4AE0-943E-6BCCE2DF2B27@microsoft.com...
I need to display extra page content (.asp file) for users with
administrator
rights on Windows XP SP2 machines. I can detect whether the client is
using
Windows XP SP2 quite easily. But, how could I detect whether a user has
logged on as a limited user or an administrator?

Your ASP code is server-side, so I am not sure how it could detect the
privilege level the user has on the client machine. Even if you ran the code
browser-side, I would think the broswer security settings should balk at
whatever it would take to make that determination.

/Al


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB