cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
New-PSSession : [10.0.110.36] Connecting to remote server 10.0.110.36 failed with the following error message : WinRM c
annot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over th
e network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By defa
ult, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. F
or more information, see the about_Remote_Troubleshooting Help topic.
At C:\Users\n4200-01-031\Documents\1.ps1:1 char:12
+ $Session = New-PSSession -ComputerName "10.0.110.36" -Credential (Get ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed
Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument th
at is not null or empty, and then try the command again.
At C:\Users\n4200-01-031\Documents\1.ps1:2 char:25
+ Invoke-Command -Session $Session -FilePath "C:\App\script.ps1"
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Remove-PSSession : Cannot validate argument on parameter 'Id'. The argument is null. Provide a valid value for the argu
ment, and then try running the command again.
At C:\Users\n4200-01-031\Documents\1.ps1:3 char:18
+ Remove-PSSession $Session
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Remove-PSSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.RemovePSSessionCommand
123: