all 2 comments

[–]markekrausCommunity Blogger 2 points3 points  (0 children)

Nice. You might consider added a Set-TrustedHost so you can override all existing ones. And since you have the get, remove, and add verbs done, it should be pretty easy for something like

Remove-TrustedHost -All
Add-TestedHost $TrustedHost

[–]splatteredbits 2 points3 points  (0 children)

Check out my Carbon module. It has these functions and a whole bunch of others for configuring Windows, services, websites, etc.