Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2011
    Posts
    23
    Rep Power
    0

    Default Java Windows logged in user Info

    Hello,

    I have two questions.

    1) How can i know how many user's are currently logged on to my Win7 machine?

    com.sun.security.auth.module.NTSystem NTSystem = new
    com.sun.security.auth.module.NTSystem();
    System.out.println(NTSystem.getName());
    System.out.println(NTSystem.getDomain());

    Above code only gives currenlty logged on user. What if user has tried switch user .

    2) As taskbar shows detailed information of all running process and their creation time. How can i get that using some cmd commands / java?

    I tried tasklist but i get only limited info. I also want CPU time,Image path name, threads , parent process id etc.

    Thanks in advance

  2. #2
    Join Date
    Oct 2011
    Posts
    23
    Rep Power
    0

    Lightbulb Re: Java Windows logged in user Info

    Hello ,

    Please help me to find the Image path of the process by process Id or some other way...

    Thanks in advance.

Similar Threads

  1. Getting logged in user's password.
    By cool in forum AWT / Swing
    Replies: 2
    Last Post: 11-03-2010, 07:42 AM
  2. How to configure tomcat in windows to avoid the INFO console?
    By Hossein in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-16-2010, 07:22 PM
  3. How to capture Windows Active User
    By chyrl in forum Advanced Java
    Replies: 4
    Last Post: 06-11-2010, 10:21 AM
  4. Replies: 2
    Last Post: 05-06-2010, 06:28 AM
  5. Replies: 0
    Last Post: 02-06-2008, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •