I have two WFE in SharePoint 2013 farm. On one of my server, I have scheduled powershell script with task scheduler for daily activity.
Last week servers gone through patching for latest patches. After patching I found out my server is no longer running the scripts and throwing error :
Get-SPWeb : Cannot find an SPSite object that contains the following Id or Url: http:///<SiteUrl>.
However my second WFE is still able to run the same scripts.