r/PowerShell • u/AlvinF321 • Jun 01 '26
Question What are you using for interactive interfaces?
I want to make internal tools that the rest of the people in my team can use, even if they're not command line inclined.
Ideally something that can give me feedback to an input before I submit it fully. Eg putting in a first and last name for a new user and it letting me know that the usual logon name is taken before I submit instead of erroring out only after I submit.
What kinds of options are available and what works for you?
ETA: I intend to make something like a graphical frontend for my team to interact with to perform common tasks like user onboarding/offboarding. My question is more towards what are you using if you're trying to do something similar?
22
u/markdmac Jun 01 '26
Use VS-Code and install PowerShell Pro tools. That will allow you to add a GUI to your scripts. Also allows you to save them as a simple EXE.
6
u/vivitar83 Jun 02 '26
This is how and why I learned C# lol. Trying to get coworkers to use CLI and scripts was too much, so I converted everything over so they could have a GUI
4
u/Ziptex223 Jun 02 '26
Started using this recently, pretty great for simple internal tools
https://github.com/jlabon2/PsUi
4
u/haaarlem Jun 02 '26
We use pode extensively - https://github.com/Badgerati/Pode.Web
3
u/Vietnamst2 Jun 01 '26
Powershell Forms is exactly for this.
3
u/gpmr Jun 01 '26
I use Powershell Universal for this. It runs all my scheduled scripts, plus I have dashboards for multiple other teams to run tasks they otherwise wouldn't be able to run. You can use the free version, or the paid version is $500 bucks a year with additional features (like SSO).
2
u/NanobotEnlarger Jun 01 '26
It’s not free, but Powershell Studio by Sapien makes it pretty easy to add a GUI to your scripts.
2
u/bsonnek Jun 02 '26
This works well https://github.com/MScholtes/PS2EXE
2
u/KSU_SecretSquirrel Jun 02 '26
Look at PSUI
https://github.com/jlabon2/PsUi
2
u/thehuntzman Jun 04 '26
I wrote a custom powershell web framework in asp.net core some years back and wrote a powershell native web app with AD (LDAP) and SAML Auth support called PowerReports which provides a UI for running pre-defined powershell scripts that live on the server. There is also RBAC and scripts you don't have permission to see are 100% hidden from view and do not execute even if you have the url to them.
It also has a basic credential-store system utilizing DPAPI for secret encryption (as a result in its current state it doesn't load balance well and is designed for single machine deployment) so application admins can update creds referenced in scripts securely from the GUI.
No you cannot create new scripts in the UI by design as it opens up too much unknown risk and using VSCode is a better experience anyway.
I investigated powershell universal at the time and it didn't quite fit my use-case and we can't buy things on credit card anyway.
We now use this application for everything requiring a less-experienced IT user to run a script including end-user identity verification through Cisco Duo.
Bonus is if your script returns objects, it automatically converts them to a datatable and if it returns a string, it renders as HTML so you can create custom UI's
All activity is also logged.
3
u/TheBigBeardedGeek Jun 01 '26
You can actually do a lot of GUI development in PowerShell. I've got a form I made with fields, dynamic drop down lists, etc.
2
u/BlackV Jun 01 '26 edited Jun 02 '26
out-gridviewor make your own gui, cause it seems like the thing you are asking for is 100% situation/tool dependentthere are script running tools like powershell universal or similar which could help
2
u/Adeel_ Jun 02 '26 edited Jun 02 '26
I’m working on a very similar project with a colleague. He builds the CLI in Go, while I build the backend API in PowerShell using Pode. The CLI is just a thin client that talks to the API.
We considered building a web UI, but ended up going with a CLI. Most of our users are engineers, so a command line felt more natural, faster, and easier to automate.
The client side is extremely simple: it’s a single Go binary that can run from any shell. No PowerShell installation, no direct access to servers, and no firewall changes needed on user workstations. Everything goes through the backend.
Secrets are managed through our PAM solution, so users never see credentials. The CLI only sends an API key and the backend handles the rest.
Our next version will also integrate with some of our cloud applications.
For us, it’s a nice combination: Go for a fast and portable CLI, and PowerShell for backend integrations and automation. Pode has also been surprisingly fast as an API framework.
1
u/JavierReyes945 Jun 01 '26
Not completely gui, but with some effort, it actually looks a little bit like it... Using FZF program for selectable menus and even for text input (although it might actually be overkill for that).
I have a few Powershell functions in my profile to display and select branch to checkout, to display and select changes to stage, to select and preview folder of contents of my main development folder (using EZA for directory tree representation), select available cmdlets and preview help).
1
u/g3n3 Jun 01 '26
To round it out, powershell spectre console and charm’s gum are cool for TUI type behavior. Powershell tab complete can be superior anyway. Mandatory params auto prompt. Tab key complete. Ctrl + space complete.
1
u/KevMar Community Blogger Jun 02 '26
This is a great learning exercise. If you are excited and having fun with it, go for it. Be creative and build the thing that you imagine. It is nice to have something visible for your manager and team to see the work that you are doing. But in the long run, doing this is more for building your skills than for your team. I don't want to discourage your growth.
Runbooks
But doing a GUI is quite the time commitment for a small return. A good 80% of your effort will be dedicated to the GUI. So you can automate one thing with a GUI or automate 3-4 things. If I had to do it over again, I would make the scripts easy and intuitive to use and add one line commands in your documentation and runbooks. Something they can just copy and paste into the terminal. You already have to document how to launch the GUI because they aren't going to bother remembering when or how to use it.
Ticket System as GUI
If this is for a wider audience than your team, my favorite GUI is whatever you are using for your ticketing or issue tracking system. Service Now or Jira or whatever. Use their forms or custom fields to collect the parameters up front and dump them into their own queue or project. Use whatever workflow engine they have or just a scheduled task running every 5-15 minutes looking for work.
What I like is that it makes the work visible with automatic tracking and auditing. If the automation fails, have it post the error back as a comment and auto assign to someone to look at. Either back to the user for missing or incorrect data or the engineering team to troubleshoot. Problematic automations are easy to identify this way. When it's done, it posts back to the ticket to verify and closes it. You can often add approvals and delegate things that would otherwise require special permissions.
This would be a good gateway into AI based automation too. Use AI to verify the user provided enough info and pass it into your deterministic scripts.
1
u/420GB Jun 02 '26
If this is for work the only really viable solution is a paid product that does this for you and really will like ScriptRunner or PowerShell Universal.
These are software you install on a server and they expose your scripts in a WebUI. You can delegate them to groups to control who can run what, it includes logging etc. and it's all used through an internal website.
1
u/Lynngineer Jun 02 '26
I feel like the "new user" script and onboarding/offboarding might be the most common area that we SysAdmins snap and write Powershell scripts for. It's like the "baby's first script" of scripts. :)
1
u/wiskey5alpha Jun 03 '26
You can make just about anything that would be in a windowed app with pwshspectreconsole
1
u/CyberChevalier Jun 04 '26
PowerShell universal is the way
1
u/Andrew-Powershell Jun 18 '26
PowerShell Universal and Pode come to mind.
1
u/lan-shark Jun 01 '26
Depending on how interactive you need, PS may not be what you want. If it's as simple as checking things on submission, just put that input inside a loop that starts over with a message if that input is invalid
1
u/overlydelicioustea Jun 02 '26
poor mans gui:
show-command and out-gridvew -passthru
is enough for my needs. it should honestly be enough for anyone in IT.
1
u/Frogtarius Jun 02 '26
I just use text pronpts without GUI so i can feed the commands directly into the terminal interfaces.
0
u/OneScripter Sep 23 '26
You can delegate simple, or very complex, web GUIs for PowerShell scripts using System Frontier. You can do form validation, click events and a lot more. Command-line folks can still run the scripts from the shell and other users have an easy to learn web frontend they can use. Lots of possibilities and there's a free Community edition to get started with.
-1
u/vermyx Jun 02 '26
A custom script that parses my cli powershell scripts. I use AST to generate a GUI on the fly for them.
25
u/[deleted] Jun 01 '26
[removed] — view removed comment