Solved

Accessing WinXP local users and groups via Java

Posted on 2006-06-29
4
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login form jsp example 2 71
sql import cannot be resolved jsp 3 116
Java: anonymous class 4 54
Is Applet the way to go for my drag and drop system? 8 51
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 first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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 …
Suggested Courses

734 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