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.

1 Answers1

0

You can get the process owner using this

System.getProperty("user.name");
Syed Farjad Zia Zaidi
  • 3,214
  • 4
  • 24
  • 48