How to append to powershell Hashtable value?

Question:

I am interating through a list of Microsoft.SqlServer.Management.Smo.Server objects and adding them to a hashtable like so:

So far so good. What I want to do now is append a string to the end of the hashtable value. So for an $instance I want to append a string to the hashtable value for that $instance. How would I do that? I have started with this, but I’m not sure if I’m on the right track:

Cheers

Answer:

Source:

How to append to powershell Hashtable value? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply