WiseScript: Get user executing a running process

I know that the currently logged on windows user can be detected via WiseScript using:

Get System Information, Retrieve: Windows Logon Name

But purely in WiseScript, is there a way to get the user name executing a running process?

There is an important difference here because you could be logged on as 'Bob', but do a run as on MyDBInterface.exe with 'Sally', and MyDBInterface.exe must ran with Bob's rights.

Note: I know that I can do this with an external C# application that talks back to wise, but rather do it in Wise if there is a built in method.

Answers


You could call the command line tool "tasklist" to get the username of a running process, and output it to a text file. Then use WiseScript to parse the file to get the exact username.


Need Your Help

How to use NPOT images as textures with libpng and OpenGL ES 1.1?

android opengl-es textures libpng opengl-es-1.1

I'm trying to use NPOT-sized PNG images as textures in OpenGL ES 1.1 (so no GL_arb_texture_rectangle) using libpng 1.5. With SDL, I could just blit the NPOT image onto a NPOT texture, but I can't f...

rails has_many multiple single table inheritance

postgresql ruby-on-rails-4 has-many single-table-inheritance

I have a couple base models, Post and Comment, with a post having many comments:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.