Solved

Accessing WinXP local users and groups via Java

Posted on 2006-06-29
4
276 Views
Last Modified: 2012-05-05
I'm writing something in Java that requires access to Windows XP local groups and users.
I'm trying to find a way to check whether a certain user or group exists, if the user is a part of a specific group or not, etc. Also, creating/deleting local users and groups.

What's the best way to do this?
0
Comment
Question by:maor
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
hoomanv earned 250 total points
ID: 17008720
use a command line tool like: net user , gpresult , etc
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

call it using Runtime.exec()
0
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 17008825
JNI or Runtime.exec() as suggested by hoomanv should be better option
0
 

Author Comment

by:maor
ID: 17009022
I'll look into these suggestions and see if they work, but concerning the link provided by hoomanv: where was it supposed to direct me?
0
 
LVL 14

Expert Comment

by:hoomanv
ID: 17009050
its an xp command line referece, since your application is os specific, you might want to look into the list to find commands for your need
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
null output 3 35
pagenation logic how it is working in my code 1 55
Java: The Public Class Main 4 32
Eclipse Java import and method not resolved 4 49
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

828 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