Required privilege using SFImpersonator.dll 
Author Message
 Required privilege using SFImpersonator.dll

Would appreciate some assistance from anybody with
experience in using SFImpersonator.dll in a Windows 2000
environment.  The method I'm having a problem using is at
the very heart of its usability, impersonating another
user's account.  When the code listed below is executed :

'Start Impersonation of Administrator
impo.Impersonate  "Administrator", "password", ".",
LOGON_INTERACTIVE

the following error occurs:

"A required privilige is not held by the client"

The very same code works flawlessly on a Windows XP Pro PC
but not on any WinNt4 or Win2K PC I've tried at work.  
What privilige is necessary that is available on XP but
not Win2K?  Thanks for any assistance in resolving this
issue.  Then again, TqcRunas.dll from Quimeras works
fine...



Thu, 12 Aug 2004 04:16:56 GMT  
 Required privilege using SFImpersonator.dll
http://groups.google.com search for: SFImpersonator

will quickly tell you

"...you have to grant the permission "Act as part of the operating system" to the user..."

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> Would appreciate some assistance from anybody with
> experience in using SFImpersonator.dll in a Windows 2000
> environment.  The method I'm having a problem using is at
> the very heart of its usability, impersonating another
> user's account.  When the code listed below is executed :

> 'Start Impersonation of Administrator
> impo.Impersonate  "Administrator", "password", ".",
> LOGON_INTERACTIVE

> the following error occurs:

> "A required privilige is not held by the client"

> The very same code works flawlessly on a Windows XP Pro PC
> but not on any WinNt4 or Win2K PC I've tried at work.  
> What privilige is necessary that is available on XP but
> not Win2K?  Thanks for any assistance in resolving this
> issue.  Then again, TqcRunas.dll from Quimeras works
> fine...



Thu, 12 Aug 2004 05:24:26 GMT  
 Required privilege using SFImpersonator.dll
Thanks for the tip!  In my case I granted the local admin
group rights to "act as part of the operating system" and
the script performs flawlessly.  Now is there a way to
script granting the above group rights to "Act as part of
the operating system" by changing the local User Rights
Assignment?  Once again thanks for your assistance.
Quote:
>-----Original Message-----
>http://groups.google.com search for: SFImpersonator

>will quickly tell you

>"...you have to grant the permission "Act as part of the

operating system" to the user..."
Quote:

>--
>Michael Harris
>Microsoft.MVP.Scripting
>--



Quote:
>> Would appreciate some assistance from anybody with
>> experience in using SFImpersonator.dll in a Windows
2000
>> environment.  The method I'm having a problem using is
at
>> the very heart of its usability, impersonating another
>> user's account.  When the code listed below is
executed :

>> 'Start Impersonation of Administrator
>> impo.Impersonate  "Administrator", "password", ".",
>> LOGON_INTERACTIVE

>> the following error occurs:

>> "A required privilige is not held by the client"

>> The very same code works flawlessly on a Windows XP Pro
PC
>> but not on any WinNt4 or Win2K PC I've tried at work.  
>> What privilige is necessary that is available on XP but
>> not Win2K?  Thanks for any assistance in resolving this
>> issue.  Then again, TqcRunas.dll from Quimeras works
>> fine...

>.



Thu, 12 Aug 2004 07:08:39 GMT  
 Required privilege using SFImpersonator.dll
There probably is but it's likely to be one of those "catch 22" situations...  

Changing user rights surely requires rights/permissions that an ordinary user wouldn't have, so you're right back where you started.  

I'm sure there is a way to do this with group policies, but that's *not* my strong suit.

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> Thanks for the tip!  In my case I granted the local admin
> group rights to "act as part of the operating system" and
> the script performs flawlessly.  Now is there a way to
> script granting the above group rights to "Act as part of
> the operating system" by changing the local User Rights
> Assignment?  Once again thanks for your assistance.
> >-----Original Message-----
> >http://groups.google.com search for: SFImpersonator

> >will quickly tell you

> >"...you have to grant the permission "Act as part of the
> operating system" to the user..."

> >--
> >Michael Harris
> >Microsoft.MVP.Scripting
> >--


> >> Would appreciate some assistance from anybody with
> >> experience in using SFImpersonator.dll in a Windows
> 2000
> >> environment.  The method I'm having a problem using is
> at
> >> the very heart of its usability, impersonating another
> >> user's account.  When the code listed below is
> executed :

> >> 'Start Impersonation of Administrator
> >> impo.Impersonate  "Administrator", "password", ".",
> >> LOGON_INTERACTIVE

> >> the following error occurs:

> >> "A required privilige is not held by the client"

> >> The very same code works flawlessly on a Windows XP Pro
> PC
> >> but not on any WinNt4 or Win2K PC I've tried at work.  
> >> What privilige is necessary that is available on XP but
> >> not Win2K?  Thanks for any assistance in resolving this
> >> issue.  Then again, TqcRunas.dll from Quimeras works
> >> fine...

> >.



Thu, 12 Aug 2004 07:41:32 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Sfimpersonator.dll - required privilege

2. Sfimpersonator error: required priviledge...

3. sfImpersonator and RegOBJ.dll

4. SFImpersonator.dll

5. Fehlermeldung :Web server requires an updated JSCRIPT.DLL.

6. Not using NT authentication but Requiring Network Userid

7. Not using NT authentication but Requiring Network Userid

8. Urgentlly require help on using TreeView Control in an ASP

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

10. SFImpersonator running called apps

11. SFImpersonator

12. SFImpersonator

 

 
Powered by phpBB® Forum Software