A few weeks ago while working on a Nagios integration to monitor Horizon View. I ran into a problem where my script would time out after 60 seconds, very annoying. It made me notice that the server running the scripts was very slow in PowerShell.
After checking out google I came across this blog by Alan Renouf stating that servers with no access to internet may experience slowness in PowerShell due to the internet explorer settings. Here is the procedure to follow:
- Start Internet Explorer
- Go to the Tools menu
- Go to Internet Options
- Go to the Advanced tab and uncheck “Check for publisher’s certificate revocation” so there is no tick in the box.
After this quick fix my command went from over 60 seconds to 18 seconds.