How do I pass variables from one runspace to another?

Hi guys I’m working on a multi window gui. The first window has the user choose a destination and also the username. The user then clicks ok which opens up another runspace gui that has the user confirm their settings. The problem is I need to assign the variable properties from the first $synchhash to properties of $synchash2. I have tried but the second gui’s label is blank.

This is what I have tried:

$synchash2.captureLocationTextBox.Content = $synchash1.locationTextBox.Text

submitted by /u/SomeRandomITguy23
[link] [comments]

Leave a Reply