[chef] Running powershell script as Admin?


Chronological Thread 
  • From: Peter Loron < >
  • To: " " < >
  • Subject: [chef] Running powershell script as Admin?
  • Date: Fri, 20 Sep 2013 15:03:38 -0700

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.

§