Go Premium for a chance to win a PS4. Enter to Win


Change a registry entry of all network user (RPC?)

Posted on 2001-06-12
Medium Priority
Last Modified: 2010-04-06
My program have to change a registry entry of all network user. (The program have all administrator rights.)
Does it is possible with Delphi (Remote Procedure Call)? Or is it possible with a MS-DOS command?
I think that I can presuppose that the administrator which using my program work with WindowNT4 or Win2000.

I would change the
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal
(Should I change also the HKEY_LOCAL_MACHINE\..\Personal entry?)
Question by:bengore
  • 3
  • 3

Accepted Solution

TOndrej earned 900 total points
ID: 6180562
see TRegistry.RegistryConnect

Author Comment

ID: 6181299
Hi TOndrej,

thank you for the simple solution. But it can be that
the machine may be switched off or not set up for remote
I'm not a network expert: Where is the HKEY_CURRENT_USER part of the registry of a network user located? If this information (the HKEY_CURRENT_USER data) is located on the server, then why I have to connect to all machines in the network? Is there no way like TRegistry.RegistryConnect('\\User1') ?


Expert Comment

ID: 6181449
> it can be that the machine may be switched off
It's difficult to work with a switched off machine <g>

> or not set up for remote access
It's difficult to access such a machine <g>

HKEY_CURRENT_USER stands for currently logged on user, it links to one of the subnodes of HKEY_USERS (whose names take form of the user SID's).
Since you wanted to changes this value for "all network user" (see original question) I assumed you would want to enumerate all subnodes of HKEY_USERS.
I guess it should also be possible to determine which of the subnodes actually belongs to the currently logged on user, I haven't investigated this possibility.

> If this information (the HKEY_CURRENT_USER data) is located on the server
My impression is that all data under HKEY_CURRENT_USER is always located locally on each computer, please correct me if I'm wrong.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 6182000
> My impression is that all data under HKEY_CURRENT_USER
> is always located locally on each computer, please
> correct me if I'm wrong.

When I login on PC A and make a link XYZ on the desktop and then log out and login on PC B then I have the link XYZ also on PC B. The information of the link XYZ is stored in the registry on the central server, don't it??

I can't believe that a administrator who want to install a new font (that means make a entry to the registry) have to switch all PC and then make the changes?

Expert Comment

ID: 6182088
Oh, you are talking about server based user profiles.
It was not clear from the question.
I still don't understand what you're trying to do, try to rephrase your question more precisely.

Author Comment

ID: 6182131
I want to write a tool for a administrator. The administrator want to install a font (which is located on the server) on all machines of the network.
So he has to add a entry to the fonts key into the registry of all network user. Perhaps there is a solution without check if all PC on?


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question