WahlNetwork / vester

Easily validate and remediate your vSphere configuration
https://wahlnetwork.com
Apache License 2.0
146 stars 45 forks source link

Create a function to create new *.Vester.ps1 test files. #181

Closed jpsider closed 7 years ago

jpsider commented 7 years ago

Expected Behavior

This file should accept an Object as a parameter, and use that to build *.Vester.ps1 files. This will allow users to quickly build test files for new settings. There of course is an assumption that each item in the object could be gathered and fixed in the same way.

Current Behavior

Currently users need to manually create the test files.

Possible Solution

I'll check in my first pass. I think that a parameter for "command" will need to be added, as the current solution is hardcoded with "Get-AdvancedSetting -Entity ......". Also, better handling of special characters being returned by PowerCLI in the setting names.

Steps to Reproduce (for bugs)

n/a

Context

This quick script allowed me to create a list of 600+ advanced settings for vCenter in seconds. I think for some users thats too much, and they may not care about all of those. But it's a nice feature to have available if you need to compare every detail about two separate Items in your environment.

Your Environment

brianbunke commented 7 years ago

I'm reading this as (mostly?) a duplicate of #102, and if so, I'd prefer to consolidate the discussion.

If you feel like this is separate, please feel free to reopen and clarify.