Python Forum

Full Version: Passing web form to powershell
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all,

im going to design a simple tkinter/web form for people to enter there username/old password/new password in a text box and when they click the submit button i want to pass it to powershell Set-ADAccountPassword so it changes there passwords

how would i do this please

thanks,
rob
You can use the tkinter library for the GUI and call the PowerShell script using Python's subprocess module—let me know if you need a code example!