Hello,
Thanks for your response the other day. I'm still trying to decide on a good scripting package for my 16 Location IT folks and we have another 2 questions. If we package a VBS into an .exe with alternate credentials (admin level) and have the .exe make calls to other VBS files (that we want to leave editable and not encrypted) will the .exe run the subsequent VBS files with the alternate credentials? That's what we WANT it to do by the way...we want the .exe to make calls to other VBS files that are not encrypted so that our IT can modify these subsequent VBS files...and have those editable VBS files runas and admin level.
Lastly, if the .exe calls these other VBS files that are not compiled into the .exe, will it pass the variables made in the .exe on to the subsequent/non-encrypted secondary VBS files?
Kindest Regards,
Jeffrey FerrisMilgard WindowsSenior WAN Admin253-922-4335JeffreyFerris@milgard.com
Script Package .exe with alternate creds
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
- jeffreyferris
- Posts: 2
- Last visit: Fri Sep 19, 2008 4:47 am
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Script Package .exe with alternate creds
Any process started usually inherits the security descriptor of its parent process. So that should do what you want. The details are usually OS specific, so I really encourage you to try it first. I am not 100% certain if this applies to processes using impersonation.
I am not sure I understand what you mean by variables being passed on.
Any script you execute from your packaged main script will be in a seperate process and not share a namespace with its parent.
You will have to pass any arguments on to your child processes either by commandline or some other interprocess means.
I am not sure I understand what you mean by variables being passed on.
Any script you execute from your packaged main script will be in a seperate process and not share a namespace with its parent.
You will have to pass any arguments on to your child processes either by commandline or some other interprocess means.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Script Package .exe with alternate creds
I think I know what you're after Alex's technical description is correct. From your perspective you want to have a packaged master script that will run with elevated credentials. Any script or command you launch from the script, such as using the Exec or Shell methods() will run under the security context of the master script. So your master script could use the RUN method to execute a traditional VBScript on a network share and it would use the elevated credentials. But you need to test this all out for yourself.