[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 460
  • Last Modified:

How to get local group object with VB6.0


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
zhjw
Asked:
zhjw
  • 3
1 Solution
 
bhagyeshtCommented:
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
 
bhagyeshtCommented:
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
 
zhjwAuthor Commented:

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

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now