dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

Get-SqlRegisteredServerName - add exclude dynamic param

Open potatoqualitee opened this issue 10 years ago • 5 comments

I need to ignore my sql2k box. Excluding would be useful.

potatoqualitee avatar Sep 20 '16 12:09 potatoqualitee

This is a bug? Or an enhancement? I'm not super certain, but leaning towards bug for now. Can we get some clarification?

SirCaptainMitch avatar Jan 16 '17 13:01 SirCaptainMitch

an enhancement, but as you can see it's already assigned to @ctrlbold .

It'll be redone in 1.0 - @powerdbaklaas and @ctrlbold are going to redesign a server-getter

niphlod avatar Jan 16 '17 13:01 niphlod

ping to @potatoqualitee and/or @PowerDBAKlaas . Is something "in the works" or can we tackle this ?

niphlod avatar Jul 10 '17 16:07 niphlod

This command needs a big ol rework - Name should be a property and not the whole output. Please do tackle by renaming and making more robust by outputting the SMO object. Hopefully the .toString() will be the needed name.

In addition, cna you append a new Property with the netbios name? Using Resolve-DbaNetworkName (perhaps hidden behind a new switch if you want.)

Also @wsmelton may have the TEPP stuff you need.

potatoqualitee avatar Jul 10 '17 16:07 potatoqualitee

I just tried rewriting this command to support it but it was too challenging. Ultimately, this command will go away but the one that replaces it will indeed include Group and ExcludeGroup. Promise <3

potatoqualitee avatar Jul 23 '17 11:07 potatoqualitee