Freigeben über


IUpdateServerConfiguration.SetProxyPassword Method (String)

 

Applies To: Windows Server Update Services

Sets the password to use when accessing the proxy server.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

void SetProxyPassword(
    string password
)
void SetProxyPassword(
    String^ password
)
abstract SetProxyPassword : 
        password:string -> unit
Sub SetProxyPassword (
    password As String
)

Parameters

  • password
    Type: System.String

    Password to use when accessing the proxy server.

Exceptions

Exception

Condition

ArgumentOutOfRangeException

password cannot be greater than 255 characters.

ArgumentNullException

password cannot be null.

Remarks

WSUS securely encrypts the password for security reasons before storing the password in the database.

You cannot get the password, you can only set it. To determine if the password is set, call HasProxyPassword. To remove the password, set password to an empty string.

User credentials are used only if UseProxy is true and AnonymousProxyAccess is false.

See Also

SetProxyPassword Overload
IUpdateServerConfiguration Interface
Microsoft.UpdateServices.Administration Namespace

Return to top