Ask your PowerShell-related questions, including questions on cmdlet development!
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 6 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.
I am having trouble getting $report to output to the richtextbox. If I put a test "teststring" instead of the $report object it is okay. Not sure what I am missing. the file has 2 VM names in it.
I put breakpoints on each line and added a few pieces of text before the command and after. I also added $x to the CheckPoint command. When I look at all variables under Variables in the debug console $x doesn't show up. Under $richtextbox "Begin" is listed but not "End". The checkpoint works on the VM and I verified I can revert to the previous snapshot.
Because $x is null. Now you get to debug your command. break should stop on "$x = <command>" but only if $global:vm is a collection with at least one member. Break and inspect $global:vm.
$x isn't showing up in "Show all variables". $global:vm is returning the correct names from the file and then getting the virtual machine info from vmm correctly.
in the debug console if I right click on the $x statement and execute selection in debug console it shows this, but i cant find a | Out-Default anywhere
>>
At line:1 char:4
+ | Out-Default
+ ~
An empty pipe element is not allowed.
This topic is 6 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.