Credentials
A necessary note on credentials.
If you want to manually specify credentials for commands and deployments, the host(s) must be added to the list of trusted hosts. Obviously, the software will do this for you, but PowerShell requires the software to be run as an administrator to add a host to the list.
This is a requirement. If the software is not run as an administrator, you will not be able to use specified credentials for commands and deployments, since the host(s) will not be added to the list of trusted hosts.
If you prefer, you can manually add the required hosts or all hosts to the list from your PowerShell console.
How to add a host to the list of trusted hosts
Open a PowerShell console as an administrator and run the following command:Set-Item wsman:\localhost\Client\TrustedHosts -Value "host1,host2,host3"
Replace host1, host2, host3 with the hosts you want to add to the list.
How to add all hosts to the list of trusted hosts
Open a PowerShell console as an administrator and run the following command:Set-Item wsman:\localhost\Client\TrustedHosts -Value "*"
This will add all hosts to the list of trusted hosts.