Re: [Tutor] pass argument from python to powershell

2013-12-14 Thread Alan Gauld
On 14/12/13 12:57, phanidhar wrote: Have a code which is powershell script and i want to execute this script using python . example of powershell script content is : get-aduser $args[0] Python script : import subprocess import os a = subprocess.Popen([r'C:\WINDOWS\system32\WindowsPowerShell

[Tutor] pass argument from python to powershell

2013-12-14 Thread phanidhar
Hi All , I am very new to python and really like to learn it . Have a code which is powershell script and i want to execute this script using python . example of powershell script content is : get-aduser $args[0] Python script : import subprocess import os a = subprocess.Popen([r'C:\WINDOWS\