title: Issue with Powershell SMO in getting backup directory
body: <p>I am trying to get the backup directory of SQL Server 2016 using PowerShell and SMO. But is is throwing an error. The same commands when I try to run for SQL Server 2008, it works fine. Not sure why it is not working for SQL Server 2016.</p>
  <p>Commands running</p>
  <pre><code>[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null 
  
  $ServerSMO = new-object -TypeName Microsoft.SqlServer.Management.Smo.Server -ArgumentList 'servername'
  
  $ServerSMO.settings
  </code></pre>
  <p>Error I am getting</p>
  <blockquote>
  <p>format-default : An exception occurred while executing a Transact-SQL statement or batch.</p>
  <ul>
  <li>CategoryInfo          : NotSpecified: (:) [format-default], ExecutionFailureException</li>
  <li>FullyQualifiedErrorId : Microsoft.SqlServer.Management.Common.ExecutionFailureException,Microsoft.PowerShell.Commands.FormatDefaultCommand</li>
  </ul>
  </blockquote>