Search found 91 matches

by miketartaglia
Wed Feb 20, 2019 7:53 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

Re: XML data to a label.text property

My original question was how to get that output of just the Name from that Instance node into the $detailsLBL control text property. It still doesn't work. It still shows up as BLANK. $buttonSEARCH_Click= { #TODO: Place custom script here [xml]$file = (Get-Content 'c:\test\programdata\Server Configu...
by miketartaglia
Wed Feb 20, 2019 6:15 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

Re: XML data to a label.text property

My apologies, the post never saved for some reason. Below is the code for the node. I hope this is what you are looking for. <Instance> <Name>billybob</Name> <Version>8.26.0.0</Version> <InstalledVersion>8.26.0.0</InstalledVersion> <LicenseKey>111-222-333-44444</LicenseKey> <AppPoolName>billybob</Ap...
by miketartaglia
Wed Feb 20, 2019 3:10 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

Re: XML data to a label.text property

I just posted the XML node
by miketartaglia
Wed Feb 20, 2019 2:07 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

Re: XML data to a label.text property

xml Servers
--- -------
version="1.0" encoding="utf-8" Servers
by miketartaglia
Wed Feb 20, 2019 1:09 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

Re: XML data to a label.text property

this is the output you requested

xml Servers
--- -------
version="1.0" encoding="utf-8" Servers
by miketartaglia
Wed Feb 20, 2019 12:13 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

Re: XML data to a label.text property

$detailsLBL is still equal to BLANK

I'm wondering if the .name is not an element for some reason? It worked fine in powershell ISE.
by miketartaglia
Wed Feb 20, 2019 10:23 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

Re: XML data to a label.text property

I already tried that before. the fact is I am getting nothing back. I start with detailsLBL.text with a default value of 'TEXT'. When it gets to reassign a value it assigns it as blank.
by miketartaglia
Wed Feb 20, 2019 9:11 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1727

XML data to a label.text property

To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: 2019 5.6.159 32 or...
by miketartaglia
Tue Jan 23, 2018 6:19 am
Forum: Windows PowerShell
Topic: Get-Unique not working as expected
Replies: 2
Views: 1160

Re: Get-Unique not working as expected

I was looking at it all wrong apparently. Thank you. that should work just fine.
by miketartaglia
Mon Jan 22, 2018 8:29 am
Forum: Windows PowerShell
Topic: Get-Unique not working as expected
Replies: 2
Views: 1160

Get-Unique not working as expected

I have a bunch of files in a folder from a few years back that I want to parse through and list just the years. The catch is I only want to list each year once so I can use that list in another part of my script. What happens is it only lists one year. Here is the code: $items = get-childitem -Path ...