The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

launching .bat file with custom action to run .py python script - is system context?

CChong
By Level 11 Flexeran
Level 11 Flexeran
My question is that if I use a custom action (a vbs script)
that runs as Deferred in System Context, and that vbs script calls the .bat file which calls the python script (.py), Does the python script (or the .bat file for that matter) run in System context?

I have repackaged some software (Spambayes). The install itself is mostly the Python software and the Win32All extensions. These components are what Spambayes relies on. To actually install the Spambayes Outlook add-in though, the user needs to run a python script from within a certain directory. I have the python and win32all extensions packaged. I also have a custom action done that calls a .bat file that calls the newly installed python.exe to run the python script which connects the Outlook Add-in to the logged in user's Outlook program. It seems that if the locally logged on user is not an adminstrator this fails.
(3) Replies

CChong
By Level 11 Flexeran
Level 11 Flexeran
Let me clarify. What I'm trying to ascertain is when one creates a deferred custom action in system context, if it calls processes, do those process run in system context as well?

Thanks,
Trent

looeee
By
Level 8
Have you tried running WhoAMI.EXE from your python script?

Its on the NT res kit and tells you the name of the current user

looeee

CChong
By Level 11 Flexeran
Level 11 Flexeran
I'll give it a try.

Thx,
Trent