viewpoint-particle

Author Topic: Find Credentials of Who is Executing Program  (Read 2088 times)

jat6923

  • Newbie
  • *
  • Posts: 7
Find Credentials of Who is Executing Program
« on: September 06, 2013, 08:17:57 am »
is there a way to determine the credentials of the account running the winbatch program.   Use Landesk to push patches/software/fixs.  Normally software executed via landesk push runs with SYSTEM account credentials even when there is another user logged in on workstation.  Have a registry update program that I need to verify is running with SYSTEM or an admin account credentials on Win7 64bit.

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Find Credentials of Who is Executing Program
« Reply #1 on: September 06, 2013, 11:40:40 am »
Take a look at the wntGetUser function in the Network Extender. wntUserProps also can be used to get the logged in users Privilege level ("GUEST", "USER", or "ADMIN")

You can also add code that attempts the registry update, if it fails then you can assume the account doesn't have the necessary credentials.
Deana F.
Technical Support
Wilson WindowWare Inc.