sfImpersonator and RegOBJ.dll 
Author Message
 sfImpersonator and RegOBJ.dll

Hi,

I have two issues and help with either would be great.

1st) When I try and use sfImpersonator, using the sample
script that comes with the dll, the script runs and
returns the error "A required privilege is not held by the
client".  I am the "domain administrator" so I cannot
understand what privilege I need for this to work
correctly? I have been searching the web for this answer,
but have found nothing so I am asking here for help.

2nd) I am using RegOBJ.dll to modify a key in
HKEY_Current_User and am having problems.  I have used
regobj.dll many times to modify keys and values in
HKEY_Local_Machine and have never had a problem.  The key
I am looking to mod under HKEY_Current_User is
\Printers\Connections and subkeys to this.  It seems to
not work with these keys.  I have tried other keys in
HKEY_Current_User, like \Software and it works fine.  Am I
doing something wrong or is this not possible with the
regobj.dll.

What I am doing is we are getting ready to rename our
print server and to avoid having to have all the users
delete and recreate all their printer selections.  I am
working on a script to go to each machine and change the
print server name, once the rename has occured.

Thanks,

Scott



Wed, 09 Mar 2005 04:30:29 GMT  
 sfImpersonator and RegOBJ.dll

Quote:

> Hi,

> I have two issues and help with either would be great.

> 1st) When I try and use sfImpersonator, using the sample
> script that comes with the dll, the script runs and
> returns the error "A required privilege is not held by the
> client".  I am the "domain administrator" so I cannot
> understand what privilege I need for this to work
> correctly? I have been searching the web for this answer,
> but have found nothing so I am asking here for help.

Hi

You have to have the permission "Act as part of the operating system":


Subject: Required privilege using SFImpersonator.dll
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-02-23 12:20:28 PST
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=b86bc57db23b0293

--
torgeir



Wed, 09 Mar 2005 06:03:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. SFImpersonator.dll

2. Sfimpersonator.dll - required privilege

3. Required privilege using SFImpersonator.dll

4. I need documentation on how to use RegObj.dll (registry manip dll)

5. Reading REG_BINARY Keys with RegObj.dll

6. regobj.dll

7. Newbie needs help in reading installed programs from the registry using RegObj.dll

8. RegObj.dll

9. regobj.dll

10. RegObj.dll RegValueTypes???

11. regobj.dll key rename

12. RegObj.dll - Newbie Example

 

 
Powered by phpBB® Forum Software