Are you in a domain or workgroup environment? If it's domain then I cannot help... no experience.
If it's a workgroup then I assume you're using basic authentication?
What response do you get when you enter:
I'm in a workgroup environment and can test the PSRemoting connection by either IP address or computername. So, for example, I enter:
Code:
test-wsman DESKTOP-MSV1KLP
... and see this:
This shows a successful connection. You should see similar.
Next, I invoke:
Code:
Invoke-Command -ComputerName DESKTOP-MSV1KLP -ScriptBlock {Get-Process} -credential user
(where 'user' is the account I'm going to use) and the credential request dialog appears for me to authenticate:
That's how you authenticate in a workgroup environment - using the
-credential parameter to invoke the challenge/response. Are you seeing similar?
Note that this is only a temporary session and will close after the command or scriptblock ends.
If I wanted to run several cmdlets then I would use:
Code:
Enter-PSSession -ComputerName DESKTOP-MSV1KLP -Credential user
Once the session is established, your prompt will change to show the remote computer you’re connected to and you should then be able to execute any number of cmdlets directly without you having to continually add the
Invoke-Command cmdlet and the remote computername.
Hope this helps...