Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
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 textbox or a label field in a gui.
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 you are outputting to a file in the Windows protected folders. Users and applications are not allowed to do this as those folders are owned by the OS. Also all of your files are stored on remote systems which is not very efficient.
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 you are outputting to a file in the Windows protected folders. Users and applications are not allowed to do this as those folders are owned by the OS. Also all of your files are stored on remote systems which is not very efficient.
That's exactly what I was looking for! I didn't know there was a -Source parameter. I must have missed that. THank you!
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.