SyntaxFix
Write A Post
Hire A Developer
Questions
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") worked for me.
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")