Posted On March 30, 2019

Resolve Error: (59) An unexpected network error occurred

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Resolve Error: (59) An unexpected network error occurred
Prerequisites:
  Ensure the the target machine has PowerShell Remoting Enabled (as it's Disabled by default)

PS C:\Users\kimconnect\Desktop\Notes> Enable-PSRemoting -Force
WinRM has been updated to receive requests.
WinRM service type changed successfully.
WinRM service started.
WinRM has been updated for remote management.
WinRM firewall exception enabled.

Alternative method:
a. Get PSExec: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec > extract copy contents into %windir% or "C:\Windows"

b. Run this command:
psexec \\hdqfswp001 reg add “HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” /v SessTimeout /t REG_DWORD /d 3600 /f

Add this registry key to increase File Session Timeout:

$serverName="FILESERVER01"
Invoke-Command -ComputerName $serverName -ScriptBlock {reg add “HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” /v SessTimeout /t REG_DWORD /d 3600 /f }

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Create Desktop Application with Electron using JavaScript

Electron packager > get release build folder cd testappnpm initdescription: calculator.jsauthor: kimconnect.com npm install --save…

Front End Web Development Menu 2019

Deployment Register a domain name: Google Domains, GodaddyManaged or Shared hosting: AWS, Hostgator, InmotionFTP/SFTP: Filezilla,…

PowerShell: Execution Policy

This is an example when Windows has an execution policy set as Restricted: PS C:\Users\KimConnect>…