Using Invoke-Command for Remoting

When I execute using Invoke-Command cmdlet to get value from remote machine eventlog for parallel result , I got error, “Connecting to remote server “” failed with the following error message : The client cannot connect to the desitnation specified in the request. Verify that the server on destination is running and is acceptinig requests. Consult the logs and documentation for the WS-Management service running on the destination , most commonly IIS or WinRM. If the destination is the WinRM service, run the following comand on the destination to analyze and configure the WinRM service; “winrm quickconfig”~
pswinrmerror So as to communicate it , I run “Enable-PSRemoting -Force” on destination server’s powershell, then when I execute again to get value more fast against using get-eventlog cmdlet, it executes well and get values.psremotingforce

Windows Remote Management (WinRM) is implemented by Microsoft, it use WS-Management protocol, we can connect local computer and remote computer using web service as securely.

Invoke-Command : Runs commands on local and remote computers and returns all output from the commands, including erros. By using a single Invoke-Command command, you can run commands on multiple computers.

 

Advertisements

글쓴이: hongwoo jin

I'm managing our Korea company's Office 365 administrator I want to be MS Office 365 & SharePoint MVP with certification.

답글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Twitter 사진

Twitter의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Google+ photo

Google+의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

%s에 연결하는 중