Tip of the Week #148 – Run Your Dynamics NAV 2018 Web Client Without an Internet Connection
This week Developer Peter Tijsma has a great tip for print companies, based on a question received from one of our latest, large implementations in North America.
However, print shops will typically have Web Clients running in their Shop Floor environments, and don’t want their users to be browsing the Internet during work hours – and thus do not grant internet access to those stations.
But – by restricting internet access from those stations, the Web Client is rendered unusable.
Hmm, tough choice… so, must we allow Shop Floor users need to browse their personal favorite websites and shop online just because they also need to access the company’s ERP System?
Use the following script in PowerShell on your Web Server to set this setting:
Import-Module “C:\Program Files\Microsoft Dynamics NAV\110\Web Client\Modules\NAVWebClientManagement\NAVWebClientManagement.psm1”
$WebServerInstance = “<yourinstancename>”
Set-NAVWebServerInstanceConfiguration -WebServerInstance $WebServerInstance -KeyName ‘LoadScriptsFromCdn’ -KeyValue $false
Start-Process -FilePath ‘IISRESET.EXE’ -Wait -NoNewWindow
Simply replace <yourinstancename> with the Web Server Instance Name for the Web Client that needs to use the scripts from the local server and run the script.
Tip: The WebServerInstanceName can be found in the URL to the Web Client: https://mywebserver.mydomain.com/WebServerInstance/WebClient
When you inspect the source of the Web Client you’ll notice these kind of differences:
Et Voilà! The Shop Floor users can now happily access your companies ERP system without the ability to do any personal browsing.
Thanks to Stefano Demiliani for finding this hidden gem.