by habs3 at 2012-08-13 10:51:54
Hiby DonJ at 2012-08-13 11:37:53
I was looking for a way to allow users from different desktops and logons to run a script to do something they might not have access to. Is there a way to embed the creds to do this without them seeing it? I know i can create it but then the script has to be run under my profile on my machine. for example. create a script to stop / start a service for their application. i could create the script but have it run under a domain service account that would allow them to manage this service. Is there a way to do this with the creds encrypted?
Not natively, no.by DexterPOSH at 2012-08-15 07:02:07
Natively, you’d typically do this through a customized remoting endpoint - but that does require a lot of setup. Another option is to use a 3rd party packager, which creates an EXE from your script and runs under embedded credentials. PowerGUI has one, PrimalScript has one, not sure if any other tools do.
I would like to add these two resources, which were showed to me by PowerShell community.
http://ps2exe.codeplex.com/
http://rkeithhill.wordpress.com/2010/09/21/make-ps1exewrapper/