Search found 3 matches

by kellydyjur
Fri Feb 08, 2019 3:57 pm
Forum: PowerShell
Topic: Changing variable name on the fly
Replies: 8
Views: 4604

Re: Changing variable name on the fly

I'm thinking the more I respond the more lectures I'm going to get on how I should learn more so I'll just go off and do that instead of continuing here. Thanks.
by kellydyjur
Fri Feb 08, 2019 3:35 pm
Forum: PowerShell
Topic: Changing variable name on the fly
Replies: 8
Views: 4604

Re: Changing variable name on the fly

Is it possible to use a variable as a part of another variable's name? So if I want to change the text of a label, I can write the name out cityALabel.text = 'foo' cityBLabel.text = 'bar' cityCLabel.text = 'splism' cityDLabel.text = 'splasm' Or... What I want to do Function changelabel ($city, $text...
by kellydyjur
Fri Feb 08, 2019 7:35 am
Forum: PowerShell
Topic: Changing variable name on the fly
Replies: 8
Views: 4604

Changing variable name on the fly

A little back story to what I am try to accomplish here: I want a dashboard that will display the status and health of various aspects of our domain controllers. For example the status of the ntds service etc. I am running some code and then placing the status on a label.text. My issue: 98% of the c...