Is 'runas <http://technet.microsoft.com/en-us/library/cc771525.aspx>' 
Windows command what you are looking for?


On Tuesday, October 28, 2014 11:48:21 AM UTC-4, Jeff Picklyk wrote:
>
> Hello everyone,
>
> What is the suggested way with Puppet 3.7.x of running a powershell 
> command under another user's context?
>
> I see that exec has a group and user parameter but I can't find 
> documentation on how this relates to windows and specifically powershell 
> commands.  It would be nice if I could just provide a PSCredential as an 
> argument and powershell module just deal with it for me.
>
> Ideas?
>
> Thanks,
>
> Jeff
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1d3c0406-8264-4279-b922-e90f4972b3c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to