﻿# Create username/password command

## Username/password account

Command: ***New-OctopusUserPassAccount***

***New-OctopusUserPassAccount** allows you to create a username/password account in Octopus from within a running deployment*

| Parameters                    | Value                                                                                                      |
|-------------------------------|------------------------------------------------------------------------------------------------------------|
| `-name`                       | Name for the Username/Password account                                                                     |
| `-username`                   | The username to use when authenticating against the remote host.                                           |
| `-password`                   | The password to use to when authenticating against the remote host.                                        |
| `-updateIfExisting`           | Will update an existing account with the same name, create if it doesn't exist                             |

Example:

```powershell
New-OctopusUserPassAccount -name "My Username Password Account" `
                           -username "your-user" `
                           -password "correct horse battery staple" `
                           -updateIfExisting
```
