Solved

How to get local group object with VB6.0

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

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
python question 5 69
java  and programming certification ? 4 86
Turning python script into an applet 12 104
Advice in Xamarin 21 56
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now