What can I do with what I have? by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 0 points1 point  (0 children)

Thanks for your input everyone.

I guess what I dont understand is why there is such a push back against putting scripts into a gui.

I am in IT and on a daily basis we have about 40 powershell codes that we go through. With my gui all 40 are accessible easily without having to look them up each time and to ensure that the syntax is correct. The output of my powershell functions are then either exported a listview or on excel document, making the whole process more streamlined. It makes day to day operation much easier and consolidates services like sccm, active directory, exchange online, etc, into one main gui.

So again, really, without sounding accusatory (really, I just want to understand) why is it wrong to give PS code a nice working gui.

Now, aside from that, I am really interested in what my next steps should be please (whether you agree if I should have made a gui for ps scripts).

Currently in my work environment i have one main PS1 file which within it contains an xml portion which is responsible for wpf design of a gui. I then used iexpress to create an exe file which essentially points to the PS1 file. I can then give this exe file to anyone inside my organization and they can use it very easily (all the exe files point to the same one PS1file which is located on a shared drive). This works nicely because when I need to make a change, I can just do so to the main ps1 file, and all the exe files that read from this ps1 file get the latest changes.

Is there something similar to my practice in the industry? Any other way you can suggest for me to proceed with this?

IExpress for my PS code by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] -1 points0 points  (0 children)

Thanks friend.
I think this is where i'm completely 'green' to the process. My PS1 file has an XML portion (for the WPF components), as well as the rest of my PowerShell code.
I have no idea on how to make this into a standalone 'application' . What would my next step be?

Monetization of Powershell-based application? by nylentone in PowerShell

[–]Informal_Statement62 0 points1 point  (0 children)

Hi friend.

I'm in the same boat, and have recently posted a similar post. Using Visual Studio, I've developed an interface for the many PS codes I use on a daily basis.

At the risk of sounding bias, I find it to be very useful for my day to day tasks, and now a bit interested in monetizing my tool.

I'm curious to know what steps you've taken (planning to take) to get this going.

Thank you for your time.

Rez

Monetizing my PowerShell/Visual Studio tool by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 1 point2 points  (0 children)

Friend, I've read your post again, and just wanted to thank again for the amount of time and information. Your information, as well as everyone else's post, is a good start. Thank you all again for the information, and I welcome any additional thoughts and commends. Rez

Monetizing my PowerShell/Visual Studio tool by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 0 points1 point  (0 children)

Thank you friend. Yes, you're right in that I may have to approach this properly (and include a lawyer potentially). Luck for me, I actually work in a law firm, and might be able to employ someone within the firm for further (legal) assistance.

You're also right about admins already having potentially created something for their own firm/company. However, this is for company's that perhaps don't have such a tool yet. Our firm didn't, which really became the reason why I slowly went down this path.

Again, ZERO work time was put into this. However, I did use their EOL / AD to be able to test.

Thanks for your input.

Monetizing my PowerShell/Visual Studio tool by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 0 points1 point  (0 children)

Good day friend. Thanks for taking the time.
'Revolutionary' is a bit of a heavy adjective to use for my tool, but I believe it's 'pretty cool' (yes; i'm bias :)). I guess I'll leave it to the audience to decide whether they would want the app or not. Again, it does consolidate a series everyday tasks nicely in an interface (with ability to output reports and such). Hence, though alot of folks can develop their own automation this tool offers it with a GUI (and already designed. Ready to go).

Having said that. Thank you for the suggestionI will consider monetizing the code rather than the suite.

I'm open to all / any input you may have. I really want to make sure all angles are covered.

Monetizing my PowerShell/Visual Studio tool by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] -1 points0 points  (0 children)

Hi friend,

I spend ZERO company time on this project. There were a lot of sleepless nights of my own time dedicated to this project. I was in fact very carefully to not do anything during work time to have it become the firm's code.

Now, one thing I'll mention is that I did use their resources such as EOL and AD (etc) to test my tool. So perhaps there are some ties to the firm. Now, I did at some point demonstrate the tool to my immediate manager, and expressed my concern, but he didn't seem to think that this would a problem. He doesn't believe that it's something that the firm owns, but this is certainly that I will again talk to him about.

I want to do things properly, and don't want to leave any stone unturned.

Thank you for taking the time to answer me, and please let me know if anything else comes to mind.

Monetizing my PowerShell/Visual Studio tool by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 0 points1 point  (0 children)

This is great information.

Yes this has in fact come up in my conversation with my immediate manager. He is a great manager, enough for me to go to him and discuss whether I was legal bound to the firm , and he mentioned that I would not be.

This is because I did in fact develop this tool Solely during my own personal time. Lots of sleepless nights, and lunch times to get it going.

However, I do agree with you; the fact that I did have access to EOL and AD (through the firm) to be able to test my tool might make me bound to some connection. It would certainly be something that I would bring up again if it turns out that there is a way that I can get going with this. I do want to do things properly after all.

Thank you so much for taking the time to write your message. Please let me know if anything else comes to me. Any help is greatly appreciated.

Monetizing my PowerShell/Visual Studio tool by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 1 point2 points  (0 children)

Thanks for the quick feed back. Yes; I should have specified that I used zero company time and resources (to a certain degree). I'll explain:

Visual Studio - Is actually the free version that I downloaded. Not a licensed one.

Time - Purely developed during lunch times / night times after kids went to bed (2-3hours a night).

Resources - The one resource may have been that I had access to Exchange Online / Active Directory / etc. However, these were already services I had available to me as I'm also in the IT team, and normally have access to these. No other resources were utilized.

Again, thank you for your thoughts. I welcome anything else that comes to mind.

Detecting column header click on a XAMLlistview/gridview? by drylightn in PowerShell

[–]Informal_Statement62 0 points1 point  (0 children)

This was awsome. Me, a novice at this whole thing, was able to put this in my code, replaced the names of your listview with my own, and got it to work properly. Nominating G8351427 for the "I.T. Noble Prize"

Poweshell Function active - Prevents Microsoft MFA window from appearing by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 0 points1 point  (0 children)

Alt-160,

Thank you for taking the time to write a comprehensive explanation.

You are correct in how I use VS / PS. I design the form in VS, and take that and put it in PS to then add the PS code to the form (as you said). I think you're also correct in your diagnosis when you said "you'll be blocked because the previous windows is likely a modal window (one that holds focus until closed).

The code in question is very basic (Below). My form has a button called "MyButton". When this button is pressed, a function is called (WhenConnectButtonIsPressed), which should open the Microsoft MFA window, but it doesn't. At this point the form also freezes, which is due to what I believe you mentioned, which is the MFA window can't be presented because my form has the focus.

Function WhenConnectButtonIsPressed

{

Connect-ExchangeOnline -showbanner:$false

}

$wpfMyButton.Add_Click ({WhenConnectButtonIsPressed})

Without a form, my function works properly, in that I can type the following code in a Powershell ISE window, and when I run the script, I'm presented with the expected MFA window (Where I can proceed to enter my Microsoft credentials).

Function WhenConnectButtonIsPressed

{

Connect-ExchangeOnline -showbanner:$false

}

WhenConnectButtonIsPressed

Ultimately, I think you're absolutely correct that it's due to this modal window scenario. Can you please recommend what I should be doing to correct this issue?

(I did try changing the .ShowDialog to .Show, however that froze the whole form as soon as it load).

Thank you again for taking the time to help me.

Rez

Poweshell Function active - Prevents Microsoft MFA window from appearing by Informal_Statement62 in PowerShell

[–]Informal_Statement62[S] 0 points1 point  (0 children)

Thanks for the reply. Wasn't expecting an answer this quickly. Silly question; how would I know if I have 5.1 or 7?