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

Posted on 2001-06-12
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 300 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.
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.


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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now