Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

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?
0
maor
Asked:
maor
  • 2
1 Solution
 
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now