Search found 6 matches

by jplunkett
Thu Sep 20, 2018 6:32 am
Forum: PowerShell GUIs
Topic: Cannot Display Remote Test-Netconnection results
Replies: 5
Views: 731

Re: Cannot Display Remote Test-Netconnection results

Here is a much easier way of initiating a remote ping. $statuslabel.Text = Test-Connection -ComputerName $targetComputer -Source $sourceComputer This causes "Source" to ping "ComputerName". You do not need to use a remote session and the result can be directly assigned to a forms control. Currently...
by jplunkett
Wed Sep 19, 2018 12:58 pm
Forum: PowerShell GUIs
Topic: Cannot Display Remote Test-Netconnection results
Replies: 5
Views: 731

Cannot Display Remote Test-Netconnection results

So I'm trying to return the results of an Invoke-Command -Scriptblock {Test-Netconnection} into a Label and I keep running into problems. I know it's a little tricky returning things back through an invoke command, but what my main goal is to show the results of the Test-NetConnection in either a te...
by jplunkett
Tue Dec 13, 2016 12:01 pm
Forum: PowerShell GUIs
Topic: After executing exe, it's not the active window
Replies: 6
Views: 2149

Re: After executing exe, it's not the active window

Looks like that was it!

I had some code running at the top before the form loads.

So I'm just an idiot :D

Thank you very much for leading me in the right direction!
by jplunkett
Tue Dec 13, 2016 11:55 am
Forum: PowerShell GUIs
Topic: After executing exe, it's not the active window
Replies: 6
Views: 2149

Re: After executing exe, it's not the active window

I wonder if it's because I set some variables at the start of everything. They aren't wrapped in anything.

Let me move those around and see what happens.
by jplunkett
Tue Dec 13, 2016 11:26 am
Forum: PowerShell GUIs
Topic: After executing exe, it's not the active window
Replies: 6
Views: 2149

Re: After executing exe, it's not the active window

Thanks for the reply!

I'm using SAPIEN PowerShell V5 Host (Windows Forms) x64

I've tried SAPIEN PowerShell V5 Host (Windows Forms) Win32 and SAPIEN PowerShell V5 Host (Windows) x64 with no success.
by jplunkett
Tue Dec 13, 2016 10:48 am
Forum: PowerShell GUIs
Topic: After executing exe, it's not the active window
Replies: 6
Views: 2149

After executing exe, it's not the active window

Hi! This is my first post and so far I've been able to find all the answer I need by myself, but this issue plagues me. Once I build my script, everything works great except when I go to run the exe, a console window flashes and then I get my form, however, it's not the active window. :cry: I've tri...