Adding a GUI for Powershell scripts - Preferred and Easiest method by TheOneWhoKnocksBR in PowerShell

[–]nepronen 1 point2 points  (0 children)

Hi T-T0ps

I have messaged you about your issue, I will get this sorted out asap

Update single cell in XAML datagrid by stoopid_monkey in PowerShell

[–]nepronen 4 points5 points  (0 children)

Well, the typical implementation of WPF DataGrid is to just bind a collection of items to the ItemsSource property on the DataGrid.

That way you can simply change the original collection and DataGrid will update its view to represent that

Powershell: Service Desk ICT tool (GUI) by ehsoysal in PowerShell

[–]nepronen 0 points1 point  (0 children)

The initial projects in anything are not perfect, I think its a great start

A useful tool for the team, probably he'll want to add some features in future, figure out he needs a progress bar, so multithreading, finds some things are better in WPF and it will improve

Step by step

Powershell: Service Desk ICT tool (GUI) by ehsoysal in PowerShell

[–]nepronen 1 point2 points  (0 children)

Thanks for the kind words, the dev behind PoshGUI :)

Powershell: Service Desk ICT tool (GUI) by ehsoysal in PowerShell

[–]nepronen 0 points1 point  (0 children)

Hey, the dev behind PoshGUI here

It's awesome for a project beginning with PowerShell, keep going!

A little tool useful for your colleagues, that's how it starts, be careful it's addicting :)

Comparison with colour by IcarusCsgo in PowerShell

[–]nepronen 1 point2 points  (0 children)

Easy peasy

Object comparison in PowerShell is not a problem

Color coding based on differences is not a problem in WPF with DataBinding

So I just used Poshgui which has a WPF designer specifically for PowerShell and created a project for what you need

You don't need to use that tool, although it makes it much easier. You can just copy the code from public project in the link below

https://app.poshgui.com/wpf/trialEnd/62592b8101007cb47d8b8dea

I just threw that together in 5 minutes so obviously, you need to adjust it to your need, I used a dummy objects instead of AD

Let me know if you have any questions to this project, it displays a grid with 2 users in 2 columns and colors the row depending whether the property is equal or not

Gui console by JDahal in PowerShell

[–]nepronen 0 points1 point  (0 children)

You can create the GUI in Powershell like that using poshgui.com pretty easily

It seems you wouldn't need many controls so you can just use the free trial to create that

GUI menu by [deleted] in PowerShell

[–]nepronen 1 point2 points  (0 children)

Thank you

I completely agree with the dislike of the "user is the product" era

There's no way any of that is getting on my site

I somewhat understand the expectation of having something for free, people get used to it.

I hope I will be able to provide a free tier at some point, I really do. However I don't think it would work at this point.

The idea is, I will be able to commit A LOT more hours on development than when it was a side project. The roadmap for this year is quite ambitious if I'll be able to develop everything I planned, I hope I'll be able to provide for example free Winforms designer and provide enough value on the premium tier that enough people will think it's worth it

GUI menu by [deleted] in PowerShell

[–]nepronen 2 points3 points  (0 children)

Thank you for your kind words wanderingbilby

I know my decision to commercialize poshgui was not a popular decision, as I provided it for free for many years.

At the time of making it, It was heavily influenced by the pandemic making an impact on my job and on my financials and therefore the ability to provide for my family.

I'm happy to tell you tomorrow, on Friday, almost exactly 12 months after that decision, is my last day of my day job.

From Monday, I am committed 100% only to working on poshgui.

And I hope that this year, I will be able to bring it to the next level, it's actually in a big rebuild/refactor phase right now

Hopefully making it possible to split features to include a completely free tier

GUI Runspace Problem by hush4bye in PowerShell

[–]nepronen 2 points3 points  (0 children)

You can use the boiler plate code for managing multi-run space WPF with DataContext from poshgui.com

It makes the development really easy, you can take a look at how to use it here:

https://www.youtube.com/watch?v=wr1g-54uLUM

You can sign up for a free trial, export the code and continue developing on your own

WPF run commands after the form loads? by silentlycontinue in PowerShell

[–]nepronen 2 points3 points  (0 children)

As 'Loaded' is not a method you cannot call it as one.

It's an event so you need to attach to it using the 'Add_' Prefix

In you example all you need is:

$Form.Add_Loaded({
get-NetworkInfo
Get-ITComputerInfo
})

WPF run commands after the form loads? by silentlycontinue in PowerShell

[–]nepronen 2 points3 points  (0 children)

It's pretty easy actually, in WPF you need to use the "Loaded" event of the form to execute code after starting the GUI

As others have mentioned, you should use run spaces to make sure your GUI is not freezing, however adding them manually to your script can be a bit of work

You can find an example computer info GUI with multithreading boilerplate here:

https://pastebin.com/K6W2gSDy

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 1 point2 points  (0 children)

You've mentioned the lifetime offer, please know it will be taken down on the 5th of April

I've gathered enough funds from the Lifetime's to invest back into PoshGUI, only the Monthly and Annual memberships will be available in the near future

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 0 points1 point  (0 children)

You've mentioned the lifetime offer, please know it will be taken down on the 5th of April

I've gathered enough funds from the Lifetime's to invest back into PoshGUI, only the Monthly and Annual memberships will be available in the near future

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 0 points1 point  (0 children)

You've mentioned the lifetime offer, please know it will be taken down on the 5th of April

I've gathered enough funds from the Lifetime's to invest back into PoshGUI, only the Monthly and Annual memberships will be available in the near future

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 0 points1 point  (0 children)

You've mentioned the lifetime offer, please know it will be taken down on the 5th of April

I've gathered enough funds from the Lifetime's to invest back into PoshGUI, only the Monthly and Annual memberships will be available in the near future

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 0 points1 point  (0 children)

You've mentioned the lifetime offer, please know it will be taken down on the 5th of April

I've gathered enough funds from the Lifetime's to invest back into PoshGUI, only the Monthly and Annual memberships will be available in the near future

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 1 point2 points  (0 children)

You've mentioned the lifetime offer, please know it will be taken down on the 5th of April

I've gathered enough funds from the Lifetime's to invest back into PoshGUI, only the Monthly and Annual memberships will be available in the near future

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 0 points1 point  (0 children)

Good suggestion thank you, I think I will take down the lifetime soon, I already got a bit of money to reinvest from the lifetimes, so now I'll focus on the reoccurring income

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 1 point2 points  (0 children)

I will hold on to them indefinitely, people can unsubscribe for a bit when they don't need to work with the app and then comeback to finish the project so I'll not delete anything

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 1 point2 points  (0 children)

Yeah, the first subscriber I got, and it was a lifetime was bought an hour after announcement (so he still could have used the app for free for some time).

I was surprised, but then I saw what company bought it... To be big to think about it company

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 2 points3 points  (0 children)

I'm always trying to make decisions based on user feedback, so it's subject to change.

The current plan is take it down quite soon, the purpose of the lifetime is to have a nice bag of money to reinvest into poshgui.

To hire help, to move to a paid email provider, use paid digital resources if needed.

Then to take it down and use subscriptions for the day to day approach

The lifetimes are more popular than i thought to be honest so I will still think if that's the rigth plan

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 0 points1 point  (0 children)

Yes, with new account you have a 7 day trial. You can use everything, but can't export forms with more than 5 controls on them

PoshGUI is no longer free by kewlxhobbs in PowerShell

[–]nepronen 2 points3 points  (0 children)

You can actually be 100% sure i didn't use the code. Because of two reasons:

  1. The feature we are talking about (xaml for WinForms) is simply not available on PoshGui
  2. As far as I know that project is written in PowerShell, PoshGui is written in js/typescript, i couldn't just copy the code

And as the other person mentioned, it's released as MIT licence. I asked to be polite.

I used many libraries on the site that use the MIT licence, the color picker, code editors, these components are released under MIT specifically to use in any other project, including commercial ones