Share via


WmiConnectionInfo.SetPassword Method

Sets the password for the account that is used to establish the connection.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public Sub SetPassword ( _
    password As String _
)
'Usage
Dim instance As WmiConnectionInfo 
Dim password As String

instance.SetPassword(password)
public void SetPassword(
    string password
)
public:
void SetPassword(
    String^ password
)
member SetPassword : 
        password:string -> unit
public function SetPassword(
    password : String
)

Parameters

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

WmiConnectionInfo Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine