Search found 38 matches

by gutihz
Wed Sep 20, 2017 12:31 pm
Forum: PowerShell GUIs
Topic: Help with the responsive form
Replies: 20
Views: 4048

Help with the responsive form

Hi Everyone, Need some help/understanding of the blog I read on this site here https://www.sapien.com/blog/2012/05/16/powershell-studio-creating-responsive-forms/ Now according to this blog, using the "Add-JobTracker" I can add a job. When I add my scriptblock, it works like a charm. However, I don'...
by gutihz
Wed Sep 20, 2017 6:57 am
Forum: PowerShell GUIs
Topic: FolderBrowserModernDialog doesn't select folder path on first click
Replies: 2
Views: 720

Re: FolderBrowserModernDialog doesn't select folder path on first click

Wow! Not sure how I missed that.
Thanks for your help.
by gutihz
Wed Sep 20, 2017 6:13 am
Forum: PowerShell GUIs
Topic: FolderBrowserModernDialog doesn't select folder path on first click
Replies: 2
Views: 720

FolderBrowserModernDialog doesn't select folder path on first click

Hi Everyone, I have a weird issue... I added a FolderBrowserModernDialog in my project to capture the path. If I select a folder after the dialog opens, it flashes and opens the dialog again inside the folder I selected. If I select another folder or go back and select the same folder, it captures t...
by gutihz
Thu Oct 13, 2016 12:29 pm
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 4679

Re: Code runs at least twice

I'm trying to check local groups on the remote computer and add if missing user names I want them to be in. I have 4 functions like the one below. Doesn't matter what I did, the form either stops responding while the functions are running or doesn't pop-up until it finishes. That's why I keep trying...
by gutihz
Thu Oct 13, 2016 9:06 am
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 4679

Re: Code runs at least twice

Why are you copying PsExcc to the remote? It serves no purpose. --> For the user to be able to use it later when they need it. Why are you using xcopy? Just use Copy-Item. --> I had issues with copy-item before. I found that xcopy works better. What is GetInfo? --> Getinfo is a PowerShell script tha...
by gutihz
Thu Oct 13, 2016 7:22 am
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 4679

Re: Code runs at least twice

Hi Jvierra,

Here is a very basic psf form.
This still takes a long time (till the functions finished) to load.

Thanks for your help.
by gutihz
Wed Oct 12, 2016 10:05 am
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 4679

Re: Code runs at least twice

Here is the block under shown $Child_Shown = { $regBase = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $CompName).OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment") $Domain = $regBase.GetValue("Domain") $Region = $Domain.Substring(0, 2) $Suffix = $regB...
by gutihz
Wed Oct 12, 2016 9:14 am
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 4679

Re: Code runs at least twice

I tried the shown event too. The child form pops-up after everything has finished.
by gutihz
Tue Oct 11, 2016 5:04 am
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 4679

Re: Code runs at least twice

I have more stuff that is running besides checking for group. I have another form that the user enters all the information and that form calls where all the results are shown. If I don't use the timer, it takes a long time for the result form to pop-up. Why d you think that a timer is the solution....
by gutihz
Fri Oct 07, 2016 6:18 am
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 4679

Re: Code runs at least twice

I have more stuff that is running besides checking for group. I have another form that the user enters all the information and that form calls where all the results are shown. If I don't use the timer, it takes a long time for the result form to pop-up.