Hi Kevin, On Tue, Aug 23, 2011 at 2:36 PM, Kevin Fries wrote: > I wrote this simple script to execute powershell scripts on our windows > servers from my Linux box. I am trying to learn Python better, but have > been unable to figure out how to re-write this script in Python. > > - ostruct can easily be replaced with a dictionary... its not as elegant, > but functional enough > > - optparse is also implemented in Python, so that will be no big deal. > > The big stumbling block is WinRM > > I do not, nor is it an option to install openwsman on the Linux boxes. I > am trying to bring our Windows boxes under the same level of management as > our Linux boxes, and the management servers are Linux. So the solution > needs to be Linux. > You can use Powershell Server: http://www.powershellinside.com/ This is more of a learning exercise than anything else, so the most elegant > solution is not being asked for. I just don't know how to implement the > functionality I am getting out of the WinRM gem in Ruby. > How about PASH? http://igorshare.wordpress.com/2008/04/06/pash-cross-platform-powershell-is-out-in-the-wild-announcement/ There are a ton of scripts: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx > > Pointers???? > > Thanks > Kevin Fries > > > > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > -- (602) 791-8002 Android (623) 239-3392 Skype (623) 688-3392 Google Voice ** HomeSmartInternational.com