Search found 59 matches

by obrienc
Thu Sep 21, 2017 6:36 am
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 2315

Re: $richTextBox

Ok, thanks. If I don't answer back in a day or 2 it's because I am trying to overcome this debugger demon... When I find the answer I'll post back.
by obrienc
Wed Sep 20, 2017 2:51 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 2315

Re: $richTextBox

$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-D...
by obrienc
Wed Sep 20, 2017 12:52 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 2315

Re: $richTextBox

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...
by obrienc
Wed Sep 20, 2017 12:28 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 2315

Re: $richTextBox

I ran the debug mode what do I need to do to see what's in the variable?

I looked through some of these but couldn't catch on to what they were doing for my script.
https://www.sapien.com/blog/2015/09/08/ ... -handlers/
by obrienc
Wed Sep 20, 2017 12:10 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 2315

Re: $richTextBox

No, what do I need to read up on to see if the variable is populated? This is the short script I wrote and worked it into a GUI. $vmmsrv = "systemcenter" $list = "DSC" $vm = foreach ($v in $vmmsrv) { foreach ($t in $list) { Get-SCVirtualMachine -VMMServer $v | where { $_.Name -match $t } } } $x = @(...
by obrienc
Wed Sep 20, 2017 11:36 am
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 2315

Re: $richTextBox

The only action I did on the richtextbox is Apply Property Set Apply Console Font
by obrienc
Wed Sep 20, 2017 11:10 am
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 2315

$richTextBox

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. $form1_Load={ Import-Module VirtualMachineManager $global:vmmsrv = "DC1SC1","DC2SC1" } $buttonFile_Click...
by obrienc
Wed Sep 06, 2017 6:05 pm
Forum: Windows PowerShell
Topic: Proper way to correlate winevents
Replies: 9
Views: 1907

Re: Proper way to correlate winevents

Now that helped. I have a list of computers from vmm I have a list of events with computer names If there is a match its replicated, if not it isnt. ## returns a list of vms from vmm $migrated = Get-SCVirtualMachine -VMMServer myvmmserver|where { $_.StatusString -eq "Stopped" -and $_.IsHighlyAvailab...
by obrienc
Wed Sep 06, 2017 5:45 pm
Forum: Windows PowerShell
Topic: Proper way to correlate winevents
Replies: 9
Views: 1907

Re: Proper way to correlate winevents

Clearly, I am using VMM cmdlets to get information then getting winevents and creating a new object. This is a complete example. It's almost working. I am trying to get all the objects into the new-object. Right now its just returning one.
by obrienc
Wed Sep 06, 2017 5:30 pm
Forum: Windows PowerShell
Topic: Proper way to correlate winevents
Replies: 9
Views: 1907

Re: Proper way to correlate winevents

Thanks for the reply. I should have been more clear. What I meant to convey was the NewField(((Replicated))) is what I am trying to insert the 6150 event into the report. I came up with this. Hopefully you can see what I am after. Would you recommend another way to do this? ## This tells me the mach...