SQL Server实例使用SQLServer PowerShell模块发现
dbatools模块的find-dbainstance
可以接受计算机名称并返回该计算机上的实例列表。 SQLServer模块中是否有等效的方法?我尝试了get-sqlinstance
,但是它似乎需要实际的实例名称,而不是能够使用它例如发现它。我更喜欢使用dbatools,但是SQLServer模块是我在当前环境中始终访问的内容。
The dbatools module's Find-DbaInstance
can accept a computer name and return a list of instances on that machine. Is there an equivalent in the SqlServer module that does this? I tried Get-SqlInstance
, but it seems to need actual instance names, as opposed to being able to use it for instance discovery. I'd prefer to use dbatools, but the SqlServer module is what I have consistent access to in the current environment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本文
例如。
There are many good results that dont even depend on the sqlserver module in this article
eg.