Solved

How to get local group object with VB6.0

Posted on 2003-11-18
7
444 Views
Last Modified: 2010-08-05

I have two computers "ComputerA" and "CompuerB" in the same Windows 2003 server domain.  Either of them is not the domain controller but they are the equal member servers.

In ComputerA, I need to run a VB6.0 program to access ComputerB's "Computer Management -> Local Users and Groups -> Groups -> Remote Desktop Users" group: to get the ComputerB's group object then add a Domain User account into that group.

e.g. my purpose is to add "domain\user1" into "ComputerB\RemoteDesktopUserGroup".  While I have to run the VB6.0 program in ComputerA.

Anyone might know how to program this with VB6.0 code? Thank you very much!
0
Comment
Question by:zhjw
  • 3
7 Comments
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9776751
you can find out the registry keys using registry monitor from sysinternals.com
once you get the keys you can connect to the remote registry using API and make changes
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9776764
to connect to remote registry
you can use the RegConnectRegistry API function call.

See the RegConnectRegistry example at:
http://www.netfokus.dk/vbadmincode/codevb.html
0
 

Author Comment

by:zhjw
ID: 9784184

The link http://www.netfokus.dk/vbadmincode/codevb.html  doesn't work.

And, anyone has the real code doing the same work? Thanks!
0
 
LVL 9

Accepted Solution

by:
bhagyesht earned 500 total points
ID: 9808671
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Embarcadero C++ builder XE10.1 Berlin TRegistry declaration 1 48
Math Equation 23 122
add projects t working set in maven 2 37
Adding a countdown to HTA 12 92
This is an explanation of a simple data model to help parse a JSON feed
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

685 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