$s = new-object Microsoft.SqlServer.Management.SMO.Server($serverlist)
Please help
@Phani_kumar Welcome to PowerShell.org forums.
Your questions is not clear. Can you tell us what issue you are facing ?
i need to get $s.databases for each server in my list.
How to get that by using SMo?
Is the above one line is the only code you have ? it will be great if you can share the code here by removing any sensitive information.
What do you get from $s.Databases
now ?