Here lies my quandry:
I have written a service that makes registry changes.
The problem I run into is that, if I create the service under any
account other than 'User' (i.e. 'LocalSystem', 'LocalService'), access
to the registry is denied. If I create the service under the 'User'
account, any time the user changes his network password (which is
vigorously mandated in my workplace) he must also change it for the
service.
I have done some research, and my best bet seems to be impersonating
the current user, since every user has administrative priveleges.
However, all examples I have located are either in ASP.NET or VB 6.0. 4 1251
hi,
I could accomplish the same....
but I'm not sure if you are trying to access a registry of
a different PC...
irfan
Jay wrote: Here lies my quandry:
I have written a service that makes registry changes.
The problem I run into is that, if I create the service under any account other than 'User' (i.e. 'LocalSystem', 'LocalService'), access to the registry is denied. If I create the service under the 'User' account, any time the user changes his network password (which is vigorously mandated in my workplace) he must also change it for the service.
I have done some research, and my best bet seems to be impersonating the current user, since every user has administrative priveleges. However, all examples I have located are either in ASP.NET or VB 6.0.
You can impersonate a user, by using LogonUser() API or I think use the
"Access control APIs' from win32 API list. Of course, for that you might
have to use P/Invoke to use in .NET.
--
Girish Bharadwaj
Girish Bharadwaj <girishb@nowhere> wrote in message news:<em**************@TK2MSFTNGP09.phx.gbl>... Jay wrote:
Here lies my quandry:
I have written a service that makes registry changes.
The problem I run into is that, if I create the service under any account other than 'User' (i.e. 'LocalSystem', 'LocalService'), access to the registry is denied. If I create the service under the 'User' account, any time the user changes his network password (which is vigorously mandated in my workplace) he must also change it for the service.
I have done some research, and my best bet seems to be impersonating the current user, since every user has administrative priveleges. However, all examples I have located are either in ASP.NET or VB 6.0.
You can impersonate a user, by using LogonUser() API or I think use the "Access control APIs' from win32 API list. Of course, for that you might have to use P/Invoke to use in .NET.
I have investigated that, but it appears that I must have a
username/password to use this option. The service must be able to run
without any programmed username/password. If I am mistaken, feel free
to fill me in on proper usage.
"irfan" <sy********@ge.com> wrote in message news:<0d****************************@phx.gbl>... hi,
I could accomplish the same....
but I'm not sure if you are trying to access a registry of a different PC...
irfan
I will be accessing the local registry. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Eugen Walcher |
last post by:
Hello all, I've tried posting this same question on other newsgroups
with no luck. This group seems to have a lot more activity so I
apologize if you have seen it before.
I'm trying to...
|
by: Eirik Brattbakk |
last post by:
Hi
I have some problems accessing a soap service made in c# using an
ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and
CSoapWininetClient as template arguments with my stub...
|
by: Jim Lewis |
last post by:
I have read several things that state accessing a Web Service through a
Query String should work. However, when I try to execute
http://localhost/webservice1/service1.asmx/HelloWorld I get the...
|
by: David Laub |
last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be
an integration issue, this may be the better place to posr:
I have written a dot net/c# Web Services doesn't fully...
|
by: Khalique |
last post by:
I have built a web service whose purpose is to copy files from a secure place
to client machine and vice versa. The problem I am having is perhaps related
to permissions and access rights.
For...
|
by: Olivier BESSON |
last post by:
Hello,
I have a web service of my own on a server (vb.net). I must declare it with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source :
...
|
by: vighnesh |
last post by:
Hello EveryOne
Can Anybody help in finding out What are User Software Settings and System
Software Settings in Windows Registry.I mean what are all the keys that are
concerned to User Software...
|
by: Jon |
last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a
direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
|
by: Anton |
last post by:
Hi,
when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in
a browser and entering the username and password manually, the wsdl is...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |