I've previously used a set of tools that were incredibly helpful, allowing me to execute CMD commands with selectable options for troubleshooting or setting up a computer for a domain. I'm curious if it's possible to create something like this myself, potentially using Python with a CMD interface, but I'm not quite sure how to start. Any suggestions or ideas would be appreciated!
4 Answers
You can build a GUI or terminal-based app in almost any programming language and invoke PowerShell commands as needed. Just start with the language you’re comfortable with and build from there!
If you're interested in building a graphical interface, using Visual Basic could be an option. You can create the GUI and then call PowerShell or CMD commands from there. It might take some effort to set everything up, but it's definitely doable!
It sounds like you’re thinking about building command-line tools, which can be powerful! Document everything you can remember about the current tools you used—like their names, functions, and any arguments. You might uncover off-the-shelf tools that are available, too. Personally, I prefer shell scripting over Python because it often fits better with management tasks. You could even build something with a language like Perl or Linux shell scripts for cross-platform use.
You might find that creating tools can be done more easily with PowerShell or BASH scripts rather than Python. While Python is great, it requires installation, which adds a layer of complexity. For Linux, you can create custom scripts and modify BASH configuration files, while on Windows, you’d need to run scripts to call commands. To get started, think about what functions you want your program to serve and on which platform.
Just to add, remember that Python programs can run without a full installation if you use tools like PyInstaller.
Thanks for the insight! I'm mainly focusing on Windows for now.