Server.InstallSharedDirectory Property
SQL Server 2012
Gets the remote shared directory where the installation data is stored for the instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
C#
Server srv = new Server("(local)");
Console.WriteLine("SQL Server installation data is stored in the " + srv.InstallSharedDirectory + " remote shared directory.");
PowerShell
$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "SQL Server installation data is stored in the" $srv.InstallSharedDirectory "remote shared directory."
