I'm writing a really big script which will get a lot of info from my farm. I'd like to make it work dynamically, so I would need to:
- Get all the database servers in the SharePoint farm
- Get all the SharePoint machines in the farm
The problem is that cmdlet
Get-SPServer
… returns all the servers together, mixed up, including the SMTP servers.
And with
Get-SPDatabase | Select NormalizedDataSource
I get them multiple times. What do I have to change to do this right?
