0

Is there any way to get the user of a process (as it is shown in the task manager) in Windows using java?

Any help will be appreciated. Thanks.

user3652845
  • 1
  • 1
  • 2

1 Answers1

1

You can get the process owner using this

System.getProperty("user.name");
Syed Farjad Zia Zaidi
  • 3,302
  • 4
  • 27
  • 50