Tag Archives: list server roles

PowerShell : Script Method Error -Method invocation failed because [Microsoft.SqlServer.Management.Smo.ServerRole] does not contain a method named ‘Script’.

I was working on generating scripts for logins, users and server roles and I could able to to generate scripts for users and logins but where as for server roles, the script() method is not working. The script is throwingΒ followingΒ error … Continue reading

Posted in PowerShell | Tagged , , , | Leave a comment