Python Forum
Passing web form to powershell
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing web form to powershell
#1
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
Reply
#2
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Running powershell command in flask wtf form robertkwild 4 136 59 minutes ago
Last Post: deanhystad
  using PowerShell from Python script for mounting shares tester_V 8 823 Mar-12-2024, 06:26 PM
Last Post: tester_V
  PowerShell & Python deep_logic 2 843 Jun-06-2023, 06:34 AM
Last Post: buran
  How to write a part of powershell command as a variable? ilknurg 2 1,229 Jul-26-2022, 11:31 AM
Last Post: ilknurg
Photo Windows 10 PowerShell doesn't work Amy 3 4,051 Apr-27-2021, 01:33 PM
Last Post: jefsummers
  how to run a file in powershell with python RomanEmpire 6 31,831 Jun-27-2017, 03:23 PM
Last Post: sparkz_alot
  virtualenv on powershell mcmxl22 3 6,593 Feb-08-2017, 06:29 AM
Last Post: snippsat
  Cant Get Powershell to run a python program from notepad++. Newbie help! Pythonerous 4 9,138 Oct-10-2016, 07:16 PM
Last Post: Pythonerous

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020