I don't know much about Powershell (FYI).
The PC is running XP SP3 with latest PS available for XP.
I'm trying to run the following cmd on a pc:
$store = "store-6108-1"
$storeuser = $store + "\administrator"
$storepass = "PASSWORD"
$secpasswd = ConvertTo-SecureString $storepass -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ($storeuser, $secpasswd)
Invoke-Command -ComputerName $store -Credential $mycreds -ScriptBlock {Get-Culture}
---
It returns the following error:
[store-6108-1] Connecting to remote server failed with the following error message : <f:WSManFault xmlns:f="http://schemas.microsoft.com
/wbem/wsman/1/wsmanfault" Code="2147749908" Machine="store-6108-1"><f:Message></f:Message></f:WSManFault> For more information, see the
about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionStateBroken
---
However when I run the following invoke cmd it works:
Invoke-Command -ComputerName $store -Credential $mycreds -ScriptBlock {Get-Culture} -SessionOption (New-PSSessionOption -NoMachineProfile)
---
I've run the following cmd multiple times:
powershell winrm quickconfig -quiet
---
returns
WinRM already is set up to receive requests on this machine.
WinRM already is set up for remote management on this machine.
I've followed the steps on http://powershell.com/cs/forums/p/5772/9509.aspx#9509 to reinstall PS however it hasn't worked.
We have had this issue in the past and the only way we have resolved it was to reinstall Windows.