| Where | Type | Optional | Default | Description |
|---|---|---|---|---|
| RemoteName | String | Remote network name (computer name to connect) | ||
| UserName | String | yes | Empty string | Specifies a user name to be used in making the connection |
| Password | String | yes | Empty string | Specifies a password to be used in making the network connection |
If Password points to an empty string, the function does not use a password.
The UserName parameter is specified when users want to connect to a network resource for which they have been assigned a user name or account other than the default user name or account.
The user-name string represents a security context. It may be specific to a network provider.