I saw a great article
PowerShell 2.0 Removal Guide: Part 8 - Remote Scripting and Troubleshooting
http://www.ravichaganti.com/blog/?p=1181
I have this problem: I have two computers in a domain, on a network.
The first test is OK: removing to a computer in a domain from a computer in a domain
COMPANY_DOMAIN \ desmonitor is a domain user.
Domain COMPANY_DOMAIN
Computer: iis01
PS C: \ Users \ myUser> Enter-PSSession -Computername iisw01 -Credential COMPANY_DOMAIN \ desmonitor
[desiisw01]: PS C: \ Users \ desmonitor \ Documents> exit
Second Wrong test :: removal to a computer in a domain from a computer in a domain using a local administrator user
iis01 \ instalador is a local user for the iis01 machine
Computer: iis01
PS C: \ Users \ myUser> Enter-PSSession -Computername iis01 -Credential iis01 \ instalador Enter-PSSession: connection to the remote server failed with the following error message: WinRM client cannot process the request.
On machine ii01 using a terminal server (Remote Desktop) using COMPANY_DOMAIN \ desmonitor, I open the PS console and run
PS C: \ Users \ desmonitor> winrm quickconfig
WinRM is already configured to receive requests on this computer.
WinRM is already configured for remote management on this computer.
PS C: \ Users \ desmonitor>
Then I try again, but I get the same error:
PS C: \ Users \ myUser> Enter-PSSession -Computername iis01 -Credential iis01 \ instalador Enter-PSSession: connection to the remote server failed with the following error message: WinRM client cannot request the request.
With this command:
PS C: \ Users \ myUser> Installed WSMan: \ localhost \ Client \ TrustedHosts -Value "*" -Force PS C: \ Users \ myUser>
Now I get access:
PS C: \ Users \ myUser> Enter-PSSession -Computername iis01 -Credential iis01 \ instalador [iiw01]: PS C: \ Users \ instalador \ Documents> $ Host
Name : ServerRemoteHost Version : 1.0.0.0 InstanceId : 6905896f-e6c7-4603-82f0-20183f71b1ec UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : es-ES CurrentUICulture : es-ES PrivateData : IsRunspacePushed : Runspace :
My company has many computers to connect to iis01.
For each calculation, do you need to run a command to add a list of remote computers to the list of trusted hosts on local computers?
I have a few questions about this ¿
How can I get a list of TrustedHosts (WSMan: \ LocalHost \ Client) on the local computer?
How do I know if the WinRM service is enabled on a computer? How do I know if the WinRM service is running on a computer? How do I know if WinRM is configured to receive a request on a computer?
How to find out if WinRM is configured for remote control on this computer ?.