Build GUI in Power Shell

Tagged: 

This topic contains 10 replies, has 9 voices, and was last updated by Profile photo of Jay Adams Jay Adams 7 months, 2 weeks ago.

  • Author
    Posts
  • #59460
    Profile photo of Karem Ali
    Karem Ali
    Participant

    i Want to turn my Scripts into GUI

    So Please , Give me a Tut. or a book that can help me to do that

    i searched online but i didn't find what i want , i just can do simple thing like

    [reflection.assembly]::loadwithpartialname("system.windows.forms")
    and some other stuff

    but i didn't find resource to learn all about that

    so please if any one know a good tut. or a book send it to me

    i want to write the GUI by my self not using editors like VisualStudio or any other Editor

    just using ISE

    Thanks in Advance ,

  • #59473
    Profile photo of Hermann
    Hermann
    Participant

    If you just want to use ISE you have to know the syntax of Windows Presentation Foundation and write XAML yourself. This is like writing html with notepad: it is possible but no one would do that.

    Why not use Visual Studio Express Edition? Its much easier.
    Here is a tutorial:
    https://www.pluralsight.com/courses/powershell-building-client-troubleshooting-tool

    Or PowerShell Studio https://www.sapien.com/software/powershell_studio

    https://www.pluralsight.com/courses/powershell-studio-2015-creating-guis-essentials

    • #59487
      Profile photo of Karem Ali
      Karem Ali
      Participant

      Thank you Hermann Lüpfert for your answer

      actually i want to learn ,not just do easy stuff

      at fact when i design website i use notepad as editor for my html/css/js 😀

      i find my pleasure in building things from scratch

      in this moment i am designing a gui and i find it so close to HTML/CSS/JS but with more option but i still don't know every thing

      so if you can give me a tut. or book and let me take my decision of using ISE or Visual Stdio or any other Editors by my self when i check it out i will be so happy

      Thank you again for your answer

  • #59488
    Profile photo of Monte Hazboun
    Monte Hazboun
    Participant

    Learn PowerShell Toolmaking in a Month of Lunches (978-1617291166) has three chapters on GUI tool making. I'd recommend starting there.

    • #59526
      Profile photo of Chris Ediger
      Chris Ediger
      Participant

      I second that recommendation.

  • #59496
    Profile photo of Rob Simmers
    Rob Simmers
    Participant

    Using one of the tools Hermann suggested expedites your learning because you have Intelli-sense to help you understand what properties and methods objects have. With a tool you learn everything an object is capable of. With notepad, you only learn about the one thing that the tutorial or book is teaching you.

  • #59503
    Profile photo of Ron
    Ron
    Participant

    I would definitely recommend Sapien Powershell Studio. My largest project has almost 9000 lines of code, and I only wrote about 1000 of them. You will need to purchase a license eventually, but it has saved me a lot of work building GUI tools for AD and Exchange administration. I tried Visual Studio about a year and a half ago, and gave up in frustration, and fortunately, I was able to get my company to pay for PSS.

    • #59512
      Profile photo of Mark Prior
      Mark Prior
      Participant

      Yep i would go with Ron on this, Sapien Powershell is great, it fills in most of the fluff for you. Still lots to learn with this

  • #59527
    Profile photo of Matt Bloomfield
    Matt Bloomfield
    Participant

    Stephen Owen wrote a good series on developing GUI Tools:

  • #59607
    Profile photo of Karem Ali
    Karem Ali
    Participant

    Thank you All for your replies

    i will take it in my consideration , and i think i am so lucky that all of you answerd my question ^_^

    Thank you again

  • #59712
    Profile photo of Jay Adams
    Jay Adams
    Participant

    Try System Frontier for those times when you've got an awesome script but don't have time to design a GUI. It will dynamically build a web GUI for you, no HTML needed. You get extra security in that the user who runs your script doesn't have to be an admin on the target machine(s) and everything, including the script output, is logged for auditing purposes. Plus when you make changes, there's no code to deploy to your users.

    Super easy to setup and it's free for 5 nodes. http://systemfrontier.com/powershell

You must be logged in to reply to this topic.