[chef] Re: Running powershell script as Admin?


Chronological Thread 
  • From: Charles Johnson < >
  • To: < >
  • Cc:
  • Subject: [chef] Re: Running powershell script as Admin?
  • Date: Fri, 20 Sep 2013 16:13:11 -0700

Check out the Powershell cookbook:
Cookbook: http://community.opscode.com/cookbooks/powershell
Docs: http://docs.opscode.com/lwrp_powershell.html

and the Windows cookbook.
Cookbook: http://community.opscode.com/cookbooks/windows
Docs: http://docs.opscode.com/lwrp_windows.html


Thanks,
--Charles


Charles Johnson — Solutions Engineer

(510) 454-9485 –  " style="color: rgb(105, 117, 130); ">  – my: Linkedin  Twitter

OPSCODE

CODE CAN

opscode.com   Blog   Facebook   Twitter   YouTube

On September 20, 2013 at 3:03:53 PM, Peter Loron ( ) wrote:

I need to run a bit of powershell code in a recipe with elevated privs. Specifically, I need to run 'enable-psremoting -force'.

By hand, I'd RDP to the box, and start a shell as Administrator and be done.

How can I duplicate this in a chef recipe?

Thanks.

-Pete



Archive powered by MHonArc 2.6.16.

§