General - Do not strip FQDN
If someone specifies an FQDN, reattach the domain back to the server name when testing for netbios/ip/etc. $server.ComputerNamePhysicalNetBIOS + $domain. This impacts many commands, including Remove-SqlDatabaseSafely which broke for me because the server's dns wasn't in my search suffix.
Is this something that is being discussed in the style guide?
If not, should it? Seems like an issue item won't have the same impact in terms of discussion.
@ctrlbold @ConstantineK is this item in the style guide? seems like it should be.
PS: also watch out because the "domain from AD" may very well not coincide with the "domain from DNS".
We need to discuss this at length in #dbatools-style then come up with a solution, find the impacted commands and create a new issue. Please see #dbatools-style