Solved

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

Posted on 2001-06-12
6
168 Views
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?)
0
Comment
Question by:bengore
  • 3
  • 3
6 Comments
 
LVL 8

Accepted Solution

by:
TOndrej earned 300 total points
ID: 6180562
see TRegistry.RegistryConnect
0
 

Author Comment

by:bengore
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
access.
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') ?

0
 
LVL 8

Expert Comment

by:TOndrej
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:bengore
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?
0
 
LVL 8

Expert Comment

by:TOndrej
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.
0
 

Author Comment

by:bengore
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?

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add Windows metadata to a text file programmatically with Delphi? 3 170
Sending Gmail through Delphi 3 91
FMX enumerated colours 2 84
Delphi inherited method 6 63
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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

14 Experts available now in Live!

Get 1:1 Help Now