Jun-27-2024, 10:17 AM
hi all,
i can run up a powershell command with subprocess fine but now im trying to get subprocess working with my powershell script but its not passing the variables
heres my py script
thanks,
rob
i can run up a powershell command with subprocess fine but now im trying to get subprocess working with my powershell script but its not passing the variables
heres my py script
import subprocess un = "username" op = "oldpassword" cnp = "newpassword" dom = "robo84" subprocess.run(f'powershell.exe C:\\python\\test.ps1' , shell=True)ps1 script
write-host $un write-host $op write-host $cnp write-host $dombut when i run in cmd, it runs with no errors but i get 4 blank lines
thanks,
rob