Accessing WinXP local users and groups via Java

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?
maorAsked:
Who is Participating?
 
hoomanvCommented:
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
 
Ajay-SinghCommented:
JNI or Runtime.exec() as suggested by hoomanv should be better option
0
 
maorAuthor Commented:
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
 
hoomanvCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.