Solved

How to get local group object with VB6.0

Posted on 2003-11-18
7
440 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 102
base64 decode encode 12 133
eclipse package explorer vs project explorer view 2 122
Advice on Xojo as a development tool over VB. 4 53
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

786 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