{"id":449,"date":"2018-04-07T13:08:01","date_gmt":"2018-04-07T13:08:01","guid":{"rendered":"https:\/\/ricardomoinhos.com\/?p=449"},"modified":"2018-04-09T18:50:17","modified_gmt":"2018-04-09T18:50:17","slug":"dynamics-nav-server-hack-by-examples","status":"publish","type":"post","link":"https:\/\/ricardomoinhos.com\/pt\/dynamics-nav-server-hack-by-examples\/","title":{"rendered":"Dynamics NAV Server hack by examples"},"content":{"rendered":"<p>If you want to handle different Dynamics NAV Server versions, ServiceTierAdministration is the way. No doubt about it.<\/p>\n<p>You may download it from Mibuso:\u00a0<a href=\"https:\/\/mibuso.com\/downloads\/service-tier-administration-tool\" target=\"_blank\" rel=\"noopener\">https:\/\/mibuso.com\/downloads\/service-tier-administration-tool<\/a><\/p>\n<p>But you can do it using Windows\u00a0<em>sc<\/em> command and\/or hacking the Windows registry.<\/p>\n<p>So let&#8217;s learn how to do it by examples:<\/p>\n<h2>1. How to create a new service instance named NewServer<\/h2>\n<blockquote><p>Existing Dynamics NAV Service: DynamicsNAV100<br \/>\nPath:\u00a0C:\\Program Files\\Microsoft Dynamics NAV\\100\\Service<\/p><\/blockquote>\n<p>Create a new directory named Instances with a subdirectory to store the new instance configuration files.<\/p>\n<blockquote><p>New path example: C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\NewServer<\/p><\/blockquote>\n<p>Now create two .config files:<\/p>\n<h5>NewServer.config<\/h5>\n<blockquote><p>&lt;configuration&gt;<br \/>\n&lt;appSettings file=&#8221;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\NewServer\\CustomSettings.config&#8221; \/&gt;<br \/>\n&lt;\/configuration&gt;<\/p><\/blockquote>\n<h5>CustomSettings.config<\/h5>\n<p>You can copy CustomSettings.config file from the\u00a0C:\\Program Files\\Microsoft Dynamics NAV\\100\\Service and paste it in the new path and update it as necessary. Below the tags I had to update are in bold.<\/p>\n<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br \/>\n&lt;appSettings&gt;<br \/>\n&lt;add key=&#8221;NetworkProtocol&#8221; value=&#8221;Default&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;DatabaseServer&#8221; value=&#8221;&lt;<strong><span style=\"color: #ff0000;\">your sql server address<\/span><\/strong>&gt;&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;DatabaseInstance&#8221; value=&#8221;<span style=\"color: #ff0000;\">&lt;your sql instance, if used&gt;<\/span>&#8221; \/&gt;<br \/>\n<strong>&lt;add key=&#8221;DatabaseName&#8221; value=&#8221;NAV2017_W1_CU16&#8243; \/&gt;<\/strong><br \/>\n&lt;add key=&#8221;EnableSqlConnectionEncryption&#8221; value=&#8221;False&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;TrustSQLServerCertificate&#8221; value=&#8221;False&#8221; \/&gt;<br \/>\n<strong>&lt;add key=&#8221;ServerInstance&#8221; value=&#8221;NewServer&#8221; \/&gt;<\/strong><br \/>\n<strong> &lt;add key=&#8221;ClientServicesPort&#8221; value=&#8221;50109&#8243; \/&gt;<\/strong><br \/>\n<strong> &lt;add key=&#8221;SOAPServicesPort&#8221; value=&#8221;50209&#8243; \/&gt;<\/strong><br \/>\n<strong> &lt;add key=&#8221;ODataServicesPort&#8221; value=&#8221;50309&#8243; \/&gt;<\/strong><br \/>\n<strong> &lt;add key=&#8221;ManagementServicesPort&#8221; value=&#8221;50009&#8243; \/&gt;<\/strong><br \/>\n&lt;add key=&#8221;ManagementServicesEnabled&#8221; value=&#8221;True&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;ClientServicesEnabled&#8221; value=&#8221;True&#8221; \/&gt;<br \/>\n&#8230;<\/p>\n<p>&#8230;<br \/>\n&lt;\/appSettings&gt;<\/p><\/blockquote>\n<p>After creating the config files, let&#8217;s create the Windows service. Open a new command-line window <span style=\"text-decoration: underline;\">in administrator mode<\/span>\u00a0(otherwise you&#8217;ll get an Access is denied error) and enter:<\/p>\n<blockquote><p>sc create MicrosoftDynamicsNavServer$NewServer binPath=&#8221;\\&#8221;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Service\\Microsoft.Dynamics.Nav.Server.exe\\&#8221; $NewServer \/config \\&#8221;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\NewServer\\NewServer.config\\&#8221;&#8221; DisplayName=&#8221;Microsoft Dynamics NAV Server [NewServer]&#8221; error=ignore depend=HTTP obj=&#8221;NT AUTHORITY\\NETWORK SERVICE&#8221;<\/p><\/blockquote>\n<p>More info about sc:\u00a0<a href=\"https:\/\/support.microsoft.com\/en-us\/help\/251192\/how-to-create-a-windows-service-by-using-sc-exe\" target=\"_blank\" rel=\"noopener\">https:\/\/support.microsoft.com\/en-us\/help\/251192\/how-to-create-a-windows-service-by-using-sc-exe<\/a><\/p>\n<p>Note: Quotes (&#8220;) in paths must be escaped with back slash (\\)<\/p>\n<p>If the service has been created successfully, you&#8217;ll see the message &#8220;[SC] CreateService SUCCESS&#8221;.<\/p>\n<p>If you run the service with the Network Service credentials, you may see the following error in the Event Log when starting the service:<\/p>\n<blockquote><p>Application: Microsoft.Dynamics.Nav.Server.exe<br \/>\nFramework Version: v4.0.30319<br \/>\nDescription: The application requested process termination through System.Environment.FailFast(string message).<br \/>\nMessage: The service could not write to the EventLog because of: &#8216;The source was not found, but some or all event logs could not be searched. To create the source, you need permission to read all event logs to make sure that the new source name is unique. Inaccessible logs: Security.&#8217;.<br \/>\nThe original message is: &#8216;Server instance: NewServer<\/p><\/blockquote>\n<p>If this happens, you can manually add the following key in the Windows Registry or you can give permissions to the user to update the registry (this way, when running the service, the correct keys in Windows Registry will be automatically added):<\/p>\n<h5>Adding Windows Registry Key<\/h5>\n<p>Add the following key\u00a0in Windows Registry so that this new service is able to add events in Event Log:<\/p>\n<blockquote><p>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\MicrosoftDynamicsNavServer$NewServer<\/p>\n<p>And add String Key named:\u00a0EventMessageFile<\/p><\/blockquote>\n<blockquote>\n<p id=\"dKgvgkF\"><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"72\" class=\"alignnone wp-image-450\" src=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5ac8c259a1da2.png\" alt=\"\" srcset=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5ac8c259a1da2.png 764w, https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5ac8c259a1da2-300x28.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/p>\n<\/blockquote>\n<p>If you prefer, you can create a new .reg file with the following content and run it:<\/p>\n<blockquote><p>Windows Registry Editor Version 5.00<\/p>\n<p>[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\MicrosoftDynamicsNavServer$NewServer]<br \/>\n@=&#8221;&#8221;<br \/>\n&#8220;EventMessageFile&#8221;=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\\<br \/>\n00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,2e,00,\\<br \/>\n4e,00,45,00,54,00,5c,00,46,00,72,00,61,00,6d,00,65,00,77,00,6f,00,72,00,6b,\\<br \/>\n00,5c,00,76,00,32,00,2e,00,30,00,2e,00,35,00,30,00,37,00,32,00,37,00,5c,00,\\<br \/>\n45,00,76,00,65,00,6e,00,74,00,4c,00,6f,00,67,00,4d,00,65,00,73,00,73,00,61,\\<br \/>\n00,67,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,00,00<\/p><\/blockquote>\n<h5>Setting Windows Registry Permissions<\/h5>\n<p>Alternatively, you may give permissions to Network Service user to update Windows Registry:<\/p>\n<blockquote><p>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application<\/p>\n<p>Right click the Application key.<\/p>\n<p id=\"rDXayNz\"><img loading=\"lazy\" decoding=\"async\" width=\"521\" height=\"362\" class=\"alignnone size-full wp-image-457 \" src=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb83f8a85a1.png\" alt=\"\" srcset=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb83f8a85a1.png 521w, https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb83f8a85a1-300x208.png 300w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/p>\n<p id=\"WqnPJNg\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"450\" class=\"alignnone size-full wp-image-458 \" src=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb84044606c.png\" alt=\"\" srcset=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb84044606c.png 363w, https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb84044606c-242x300.png 242w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/p>\n<\/blockquote>\n<p>Now you just need to run the service, either using ServiceTierAdministration tool, Dynamics NAV Administration tool or Windows Services applet.<\/p>\n<h2>2. How to rename an existing service instance named NewServer to NewNavServer<\/h2>\n<p>Stop the service.<\/p>\n<p>Rename the instance directory name from NewServer to NewNavServer and rename the .config file from NewServer to NewNavServer, to keep it consistent:<\/p>\n<blockquote><p>Old path\/file name: C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\<strong>NewServer\\NewServer.config<\/strong><\/p>\n<p>New path\/file name: C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\<strong>NewNavServer\\NewNavServer.config<\/strong><\/p><\/blockquote>\n<p>Update the NewNavServer.config file:<\/p>\n<blockquote><p>&lt;configuration&gt;<br \/>\n&lt;appSettings file=&#8221;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\<strong>NewNavServer<\/strong>\\CustomSettings.config&#8221; \/&gt;<br \/>\n&lt;\/configuration&gt;<\/p><\/blockquote>\n<p>Update the CustomSettings.config file with the new service name:<\/p>\n<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br \/>\n&lt;appSettings&gt;<br \/>\n&lt;add key=&#8221;NetworkProtocol&#8221; value=&#8221;Default&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;DatabaseServer&#8221; value=&#8221;&lt;your sql server address&gt;&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;DatabaseInstance&#8221; value=&#8221;&lt;your sql instance, if used&gt;&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;DatabaseName&#8221; value=&#8221;NAV2017_W1_CU16&#8243; \/&gt;<br \/>\n&lt;add key=&#8221;EnableSqlConnectionEncryption&#8221; value=&#8221;False&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;TrustSQLServerCertificate&#8221; value=&#8221;False&#8221; \/&gt;<br \/>\n<strong>&lt;add key=&#8221;ServerInstance&#8221; value=&#8221;NewNavServer&#8221; \/&gt;<\/strong><br \/>\n&lt;add key=&#8221;ClientServicesPort&#8221; value=&#8221;50109&#8243; \/&gt;<br \/>\n&lt;add key=&#8221;SOAPServicesPort&#8221; value=&#8221;50209&#8243; \/&gt;<br \/>\n&lt;add key=&#8221;ODataServicesPort&#8221; value=&#8221;50309&#8243; \/&gt;<br \/>\n&lt;add key=&#8221;ManagementServicesPort&#8221; value=&#8221;50009&#8243; \/&gt;<br \/>\n&lt;add key=&#8221;ManagementServicesEnabled&#8221; value=&#8221;True&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;ClientServicesEnabled&#8221; value=&#8221;True&#8221; \/&gt;<br \/>\n&lt;add key=&#8221;ReportPDFFontEmbedding&#8221; value=&#8221;True&#8221; \/&gt;<br \/>\n&#8230;<\/p>\n<p>&#8230;<br \/>\n&lt;\/appSettings&gt;<\/p><\/blockquote>\n<p>Now rename the service name. This can be done following one of these two steps:<\/p>\n<h5>1. Via Windows Registry<\/h5>\n<p>Open Windows Registry Editor, access the path and rename the service name:<\/p>\n<blockquote><p>Path: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\MicrosoftDynamicsNavServer$NewServer<\/p>\n<p>Rename Key: <strong>MicrosoftDynamicsNavServer$NewServer<\/strong><\/p>\n<p>To: <strong>MicrosoftDynamicsNavServer$NewNavServer<\/strong><\/p><\/blockquote>\n<p id=\"lpGqxfV\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"255\" class=\"alignnone size-full wp-image-459 \" src=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb8485b7c2b.png\" alt=\"\" srcset=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb8485b7c2b.png 484w, https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2018\/04\/img_5acb8485b7c2b-300x158.png 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>Change the DisplayName:<\/p>\n<blockquote><p>From:\u00a0Microsoft Dynamics NAV Server [NewServer]<\/p>\n<p>To:\u00a0Microsoft Dynamics NAV Server [NewNavServer]<\/p><\/blockquote>\n<p>Change the ImagePath:<\/p>\n<blockquote><p>From: &#8220;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Service\\Microsoft.Dynamics.Nav.Server.exe&#8221; $<strong>NewServer<\/strong> \/config &#8220;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\<strong>NewServer<\/strong>\\<strong>NewServer<\/strong>.config&#8221;<\/p>\n<p>To: &#8220;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Service\\Microsoft.Dynamics.Nav.Server.exe&#8221; $<strong>NewNavServer<\/strong> \/config &#8220;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\<strong>NewNavServer<\/strong>\\<strong>NewNavServer<\/strong>.config&#8221;<\/p><\/blockquote>\n<p>Restart the machine so changes take effect.<\/p>\n<h5>2. Recreate the Dynamics NAV Server<\/h5>\n<p>Remove the existing service:<\/p>\n<blockquote><p>sc delete MicrosoftDynamicsNavServer$NewServer<\/p><\/blockquote>\n<p>If successfully deleted, you&#8217;ll get the message &#8220;[SC] DeleteService SUCCESS&#8221;<\/p>\n<p>Recreate the new service.<br \/>\nOpen a new command-line window in administrator mode\u00a0(otherwise you&#8217;ll get an Access is denied error) and enter:<\/p>\n<blockquote><p>sc create MicrosoftDynamicsNavServer$NewNavServer binPath=&#8221;\\&#8221;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Service\\Microsoft.Dynamics.Nav.Server.exe\\&#8221; $NewNavServer \/config \\&#8221;C:\\Program Files\\Microsoft Dynamics NAV\\100\\Instances\\NewNavServer\\NewNavServer.config\\&#8221;&#8221; DisplayName=&#8221;Microsoft Dynamics NAV Server [NewNavServer]&#8221; error=ignore depend=HTTP obj=&#8221;NT AUTHORITY\\NETWORK SERVICE&#8221;<\/p><\/blockquote>\n<p>If the service has been created successfully, you&#8217;ll see the message &#8220;[SC] CreateService SUCCESS&#8221;.<\/p>\n<p>&nbsp;<\/p>\n<p>After renaming the service name, if the user running the service doesn&#8217;t have permission to update the registry, you need to rename the key in Windows Registry so that the renamed service is able to add events in Event Log. To do it, you have to rename the following key:<\/p>\n<blockquote><p>From: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\MicrosoftDynamicsNavServer$<strong>NewServer<\/strong><\/p>\n<p>To: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\MicrosoftDynamicsNavServer$<strong>NewNavServer<\/strong><\/p><\/blockquote>\n<p>Now you just need to run the service, either using ServiceTierAdministration tool, Dynamics NAV Administration tool or Windows Services applet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to handle different Dynamics NAV Server versions, ServiceTierAdministration is the way. No doubt about it. You may download it from Mibuso:\u00a0https:\/\/mibuso.com\/downloads\/service-tier-administration-tool But you can do it using Windows\u00a0sc command and\/or hacking the Windows registry. So let&#8217;s learn how to do it by examples: 1. How to create a new service instance named [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":138,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[4],"tags":[6,13],"class_list":{"0":"post-449","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-dynamics365bc","8":"tag-dynamicsnav-2","9":"tag-navserver","11":"post-with-thumbnail","12":"post-with-thumbnail-icon"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dynamics NAV Server hack by examples - Ricardo Paiva Moinhos<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dynamics NAV Server hack by examples - Ricardo Paiva Moinhos\" \/>\n<meta property=\"og:description\" content=\"If you want to handle different Dynamics NAV Server versions, ServiceTierAdministration is the way. No doubt about it. You may download it from Mibuso:\u00a0https:\/\/mibuso.com\/downloads\/service-tier-administration-tool But you can do it using Windows\u00a0sc command and\/or hacking the Windows registry. So let&#8217;s learn how to do it by examples: 1. How to create a new service instance named [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Ricardo Paiva Moinhos\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-07T13:08:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-09T18:50:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2014\/06\/PT_c_Dyn-NAV-2013.png\" \/>\n\t<meta property=\"og:image:width\" content=\"375\" \/>\n\t<meta property=\"og:image:height\" content=\"375\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ricardo Paiva Moinhos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ricardo Paiva Moinhos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/\"},\"author\":{\"name\":\"Ricardo Paiva Moinhos\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#\\\/schema\\\/person\\\/16dcfdd54ec1c46bd1941659739de4cc\"},\"headline\":\"Dynamics NAV Server hack by examples\",\"datePublished\":\"2018-04-07T13:08:01+00:00\",\"dateModified\":\"2018-04-09T18:50:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/\"},\"wordCount\":1222,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/PT_c_Dyn-NAV-2013.png\",\"keywords\":[\"dynamicsnav\",\"NAVServer\"],\"articleSection\":[\"Dynamics NAV\\\/365 BC\"],\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/\",\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/\",\"name\":\"Dynamics NAV Server hack by examples - Ricardo Paiva Moinhos\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/PT_c_Dyn-NAV-2013.png\",\"datePublished\":\"2018-04-07T13:08:01+00:00\",\"dateModified\":\"2018-04-09T18:50:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#\\\/schema\\\/person\\\/16dcfdd54ec1c46bd1941659739de4cc\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/PT_c_Dyn-NAV-2013.png\",\"contentUrl\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/PT_c_Dyn-NAV-2013.png\",\"width\":375,\"height\":375},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/dynamics-nav-server-hack-by-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ricardomoinhos.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dynamics NAV Server hack by examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#website\",\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/\",\"name\":\"Ricardo Paiva Moinhos\",\"description\":\"Welcome\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ricardomoinhos.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#\\\/schema\\\/person\\\/16dcfdd54ec1c46bd1941659739de4cc\",\"name\":\"Ricardo Paiva Moinhos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g\",\"caption\":\"Ricardo Paiva Moinhos\"},\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/author\\\/ricardopaiva\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dynamics NAV Server hack by examples - Ricardo Paiva Moinhos","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/","og_locale":"pt_PT","og_type":"article","og_title":"Dynamics NAV Server hack by examples - Ricardo Paiva Moinhos","og_description":"If you want to handle different Dynamics NAV Server versions, ServiceTierAdministration is the way. No doubt about it. You may download it from Mibuso:\u00a0https:\/\/mibuso.com\/downloads\/service-tier-administration-tool But you can do it using Windows\u00a0sc command and\/or hacking the Windows registry. So let&#8217;s learn how to do it by examples: 1. How to create a new service instance named [&hellip;]","og_url":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/","og_site_name":"Ricardo Paiva Moinhos","article_published_time":"2018-04-07T13:08:01+00:00","article_modified_time":"2018-04-09T18:50:17+00:00","og_image":[{"width":375,"height":375,"url":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2014\/06\/PT_c_Dyn-NAV-2013.png","type":"image\/png"}],"author":"Ricardo Paiva Moinhos","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Ricardo Paiva Moinhos","Tempo estimado de leitura":"6 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#article","isPartOf":{"@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/"},"author":{"name":"Ricardo Paiva Moinhos","@id":"https:\/\/ricardomoinhos.com\/#\/schema\/person\/16dcfdd54ec1c46bd1941659739de4cc"},"headline":"Dynamics NAV Server hack by examples","datePublished":"2018-04-07T13:08:01+00:00","dateModified":"2018-04-09T18:50:17+00:00","mainEntityOfPage":{"@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/"},"wordCount":1222,"commentCount":0,"image":{"@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2014\/06\/PT_c_Dyn-NAV-2013.png","keywords":["dynamicsnav","NAVServer"],"articleSection":["Dynamics NAV\/365 BC"],"inLanguage":"pt-PT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/","url":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/","name":"Dynamics NAV Server hack by examples - Ricardo Paiva Moinhos","isPartOf":{"@id":"https:\/\/ricardomoinhos.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#primaryimage"},"image":{"@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2014\/06\/PT_c_Dyn-NAV-2013.png","datePublished":"2018-04-07T13:08:01+00:00","dateModified":"2018-04-09T18:50:17+00:00","author":{"@id":"https:\/\/ricardomoinhos.com\/#\/schema\/person\/16dcfdd54ec1c46bd1941659739de4cc"},"breadcrumb":{"@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/"]}]},{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#primaryimage","url":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2014\/06\/PT_c_Dyn-NAV-2013.png","contentUrl":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2014\/06\/PT_c_Dyn-NAV-2013.png","width":375,"height":375},{"@type":"BreadcrumbList","@id":"https:\/\/ricardomoinhos.com\/dynamics-nav-server-hack-by-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ricardomoinhos.com\/"},{"@type":"ListItem","position":2,"name":"Dynamics NAV Server hack by examples"}]},{"@type":"WebSite","@id":"https:\/\/ricardomoinhos.com\/#website","url":"https:\/\/ricardomoinhos.com\/","name":"Ricardo Paiva Moinhos","description":"Welcome","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ricardomoinhos.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":"Person","@id":"https:\/\/ricardomoinhos.com\/#\/schema\/person\/16dcfdd54ec1c46bd1941659739de4cc","name":"Ricardo Paiva Moinhos","image":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/secure.gravatar.com\/avatar\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g","caption":"Ricardo Paiva Moinhos"},"url":"https:\/\/ricardomoinhos.com\/pt\/author\/ricardopaiva\/"}]}},"jetpack_featured_media_url":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2014\/06\/PT_c_Dyn-NAV-2013.png","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts\/449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/comments?post=449"}],"version-history":[{"count":12,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts\/449\/revisions"}],"predecessor-version":[{"id":465,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts\/449\/revisions\/465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/media\/138"}],"wp:attachment":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/media?parent=449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/categories?post=449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/tags?post=449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}