Running PowerShell command in Central Management Server

David C 191 Reputation points
2020-08-20T04:15:12.643+00:00

I'm a PowerShell noob. I know I can run T-SQL commands against multiple servers in my Central Management Server. Can I run a PS cmdlet or function against multiple servers from within the CMS? When I click on any node in the CMS hierarchy, the "Start PowerShell" option is available. But when I run PowerShell in that way, and run a PS cmdlet in the window, it only runs against the local SQL Server. Thanks.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,948 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.