PowershellSettingsExtensions.

UseUsername(PowershellSettings, string) Method

Summary

Gets or sets the credentials to use when connecting

Syntax

public static PowershellSettings UseUsername(this PowershellSettings settings, string username)

Parameters

Name Type Description
settings PowershellSettings The powershell settings.
username string The username to connect with.

Return Value

Type Description
PowershellSettings The same PowershellSettings instance so that multiple calls can be chained.