Solved

Accessing WinXP local users and groups via Java

Posted on 2006-06-29
4
275 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet filter example 37 63
runtime exception 2 28
How to determine if a string is a valid SHA value 7 34
Java: anonymous class 4 22
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

803 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