This is mostly a general question. I'll give an example for the sake of asking this question but this is more about how to "unset" settings from a general sense.
Here's what I mean, and maybe it's just my noob-ness to Powershell or the specific technology, but when I need to configure something, and I google around and find that the only way Windows allows this setting to be configured is via Powershell, and then I find an example command to run to make the intended change.
Just for example's sake, say I needed to set an allowed VLAN list on a virtual machine and set it to trunk mode, and i found this as the command:
Set-VMNetworkAdapterVlan –VMName MY_VM_NAME –Trunk –AllowedVlanIdList 201-230 –NativeVlanId 201
So OK great, I run the command and bingo it's done.
But - what if I later decide I want to revert back? If I just needed to change the allowed VLAN range I know I can just re-run the same command with the new values.
But what if I changed my mind, I don't want an vlan range restriction, and/or I no longer want this in Trunk mode.
Microsoft's help page just gives all the different possible settings:
In a Windows GUI at least you have some way to look at the settings and see what other options there are (dropdown or radio buttons for example). In Linux in most cases configurations are in a text file that is easily browsed and normally commented.
In Windows, where a setting can only be set via Powershell, I seem to always run into situations where I know that once a make a change this way, I'll have no idea how to revert back if needed.
I guess I'm just looking for some advice on how others deal with this, and how you learn more about the different options. I know how to get help for a module but then once it's deep in the switches/options I'm not always clear when building a powershell command how to get details on the switch options (from within Powershell), and even if I did it would probably still look similar to technet and not really explain how to reset something back to default.
Any advice or guidance would be appreciated.