Monthly Archives: June 2016

PowerShell – Install PowerShell

Recently got a question regarding PowerShell installation hence this post took an existence. How to Install PowerShell various versions Can we have more than one version of Powershell? Yes, You can have multiple versions PowerShell. How to switch … Continue reading

Posted in PowerShell | Leave a comment

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