Search found 17 matches
- Fri May 10, 2019 10:51 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
Something a little closer to home that says basically the same thing: https://www.sapien.com/blog/2012/05/16/ ... ive-forms/
- Fri May 10, 2019 10:49 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
yeah... so, this pretty much sums up what I am seeing, why I am seeing it and what I need to do to fix it: https://stackoverflow.com/questions/352 ... uting-loop
- Fri May 10, 2019 10:12 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
I should note, and maybe this will help, if I add a “pause” after the: txtbox2.text = “Checking.....
Line then the text box updates and I have to close the pause pop-up to continue the script.
Line then the text box updates and I have to close the pause pop-up to continue the script.
- Fri May 10, 2019 10:08 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
Fixed the foreach-object issue I caused. I just had to keep { on the same line. That said, even using the function, the text box still does not update after get-gpo runs.
- Fri May 10, 2019 10:01 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
The TXT file is no where like the original code you posted. It does something completely different. Without a better statement of what is not happening it is not possible to guess your issues or cause. Also there is no way I can run the code as it is dependent on the GPO names you have on your syst...
- Fri May 10, 2019 9:57 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
The code you submitted needs a process defined for foreach-object. Get-gpo -all | foreach-object {} does not work. As for my crappy code (lol): Txtbox2.text = “Gathering GPO’s” Updates the text box. Everything after that works until: Txtbox2.text = “Checking $GPODisp for $Searchterm” That does NOT u...
- Fri May 10, 2019 9:43 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
I cannot upload a ps1 on my network. It is not allowed by policy. All you have to do is change the dang extension or copy and paste or download, save as....
- Fri May 10, 2019 9:20 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
I can not attach a .ps1 file as I am blocked from doing so. You can’t change a file extension after downloading??? Thanks for the help but really? It is getting a little ridiculous. It is as though you keep having me re-post until I give up and you never really answer the question...
- Fri May 10, 2019 9:11 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
Ok, reposting as attachment with corrections... just noting however, my red box states to either use select code or attach...
- Fri May 10, 2019 9:04 am
- Forum: PowerShell GUIs
- Topic: Forms, text boxes and get-gpo
- Replies: 32
- Views: 6576
Re: Forms, text boxes and get-gpo
Dang it, and $searchterm = $txtbox.text
Not $txtbox1.text
Not $txtbox1.text