Solved

Accessing WinXP local users and groups via Java

Posted on 2006-06-29
4
273 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
Comment Utility
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
Comment Utility
JNI or Runtime.exec() as suggested by hoomanv should be better option
0
 

Author Comment

by:maor
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 55
bitbucket vs gitbucket 3 28
micro services vs rest web services 16 45
Java - Why doesn't this JFrame work 3 14
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

763 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

10 Experts available now in Live!

Get 1:1 Help Now