Search found 97 matches

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

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: 1976

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: 1976

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: 1976

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: 1197

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: 1197

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 ...
by miketartaglia
Wed Jan 03, 2018 10:40 am
Forum: Windows PowerShell
Topic: Trouble with multiple Device ID's (Local Hard drives)
Replies: 43
Views: 6172

Re: Trouble with multiple Device ID's (Local Hard drives)

2018-01-03_12-37-39.png
2018-01-03_12-37-39.png (41.67 KiB) Viewed 815 times
See attached image to see what I was going for. I did a few tests that created this data.

However, I agree with you about the the primary key should be more than just the ID field. I will work on that. Thanks again!

Mike
by miketartaglia
Wed Jan 03, 2018 8:57 am
Forum: Windows PowerShell
Topic: Trouble with multiple Device ID's (Local Hard drives)
Replies: 43
Views: 6172

Re: Trouble with multiple Device ID's (Local Hard drives)

I want it to update every record. I am only updating what is in the view. The view only shows entries for ENDTIME, ENDDATE and ENDSPACE(Free disk space) that are NULL. This is exactly what I need. The script is only meant to run twice a day. Once for the START switch and once for the END switch. I w...
by miketartaglia
Wed Jan 03, 2018 8:30 am
Forum: Windows PowerShell
Topic: Trouble with multiple Device ID's (Local Hard drives)
Replies: 43
Views: 6172

Re: Trouble with multiple Device ID's (Local Hard drives)

jvierra, I have tested inside and out and this code works now. It has been re-rewritten to fit my needs. For now, the primary key is just the IDNumber field. Thanks again. :D That will update all records for a server with the last update which is your issue. You still haven't defined a primary key. ...
by miketartaglia
Wed Jan 03, 2018 8:13 am
Forum: Windows PowerShell
Topic: Trouble with multiple Device ID's (Local Hard drives)
Replies: 43
Views: 6172

Re: Trouble with multiple Device ID's (Local Hard drives)

I took your advice and thought the process through the END switch again. Here is the code (just the end switch part) that now works 100% Please make any suggestions you see fit, but I wanted to at least post what I came up with so it may help others. Thanks for all your help. if ($end) { $creds = Ge...