Solved

How to get local group object with VB6.0

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
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…

757 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

19 Experts available now in Live!

Get 1:1 Help Now