Reads the Configuration Manager console installation directory. Namespace: Microsoft.ConfigurationManagement.AdminConsole.Common
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim returnValue As String

returnValue = UtilityClass.ReadSmsBinDirectory

Syntax

Visual Basic
Public Shared Function ReadSmsBinDirectory As String
C#
public static string ReadSmsBinDirectory ()
C++
public:
static String^ ReadSmsBinDirectory ()
J#
public static String ReadSmsBinDirectory ()
JScript
public static function ReadSmsBinDirectory () : String

Return Value

Returns the folder path that contains the Configuration Manager 2007 console binary files.

Exceptions

Exception type Condition
NotSupportedException

Could not find the Configuration Manager console installation directory.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also