{"id":878,"date":"2018-01-03T17:44:00","date_gmt":"2018-01-03T08:44:00","guid":{"rendered":"https:\/\/chat-messenger.com\/?p=878"},"modified":"2026-02-09T16:54:34","modified_gmt":"2026-02-09T07:54:34","slug":"launch_camserver_as_windows_service","status":"publish","type":"post","link":"https:\/\/chat-messenger.com\/en\/manual\/camserver\/launch_camserver_as_windows_service","title":{"rendered":"Start CAMServer as a Windows Service"},"content":{"rendered":"<p><style type=\"text\/css\"><!--\ntable, th, td {\n    border: none !important;\n}\n--><\/style><\/p>\n\n\n\n<h2><a name=\"svc_gaiyou\"><\/a>Overview of Windows Services<\/h2>\n\n\n\n<p>CAMServer can also be run as a Windows service. There are several advantages to running as a Windows service.<\/p>\n\n\n\n<h3><a name=\"svc_merit\"><\/a>Advantages and Disadvantages<\/h3>\n\n\n\n<h4>Advantages<\/h4>\n\n\n\n<ul><li>When connecting to the server via remote desktop and logging off, CAMServer does not stop.<\/li><li>Termination processing is reliably executed when the OS is shut down.<\/li><li>In the unlikely event that CAMServer crashes, you can automate the restart by using the &quot;Recovery&quot; feature of Windows services.<\/li><\/ul>\n\n\n\n<h4>demerit<\/h4>\n\n\n\n<ul><li>Nothing in particular.<\/li><\/ul>\n\n\n\n<h2><a name=\"svc_riyou\"><\/a>Setup Method<\/h2>\n\n\n\n<h3>Check win_service in the folder structure after installation<\/h3>\n\n\n\n<p>As a service registration\/deletion\/start\/stop script,<em>CAMServer\/win_service<\/em> are located.<\/p>\n\n\n\n<p>The role of each script is as follows<\/p>\n\n\n\n<ul><li>installSvc.vbs---Registers CAMServer as a Windows service<\/li><li>removeSvc.vbs -- Removes CAMServer registered as a service from the service.<\/li><li>startSvc.vbs--Starts CAMServer as a service<\/li><li>stopSvc.vbs---Stop CAMServer started as a service<\/li><\/ul>\n\n\n\n<h3>Registering for Windows Services<\/h3>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>To run CAMServer as a service, you must first register it as a service in Windows only once.<\/p>\n\n\n\n<p>To register it as a Windows service, manually click and launch camserver.exe in the unzipped folder. The main window will be displayed as usual, so go to &quot;Administration Menu&quot; -&gt; &quot;Services&quot; -&gt; &quot;Install Service&quot;.<\/p>\n\n\n\n<p>When executed, the service is registered to the service as a service name \"CAMServerService\".<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-large is-resized is-style-border\"><img src=\"https:\/\/chat-messenger.com\/images\/ins_windows_svc.jpg\" alt=\"\" width=\"287\" height=\"177\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>After registration, to check if the service was registered successfully, open the Windows Services screen in the Control Panel.<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image is-resized is-style-border\"><img src=\"https:\/\/chat-messenger.com\/images\/svc_win_monitor.jpg\" alt=\"\" width=\"317\" height=\"103\"\/><figcaption>control panel<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image is-resized is-style-border\"><img src=\"https:\/\/chat-messenger.com\/images\/confirm_ctrl_svc.jpg\" alt=\"\" width=\"266\" height=\"166\"\/><figcaption>You can also open the &quot;Control Panel&quot; from CAMServer.<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3><a name=\"svc_auto\"><\/a>Auto Start Windows Services<\/h3>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>In the Windows Services screen, select the service name <code>CAMServerService<\/code> Double-click on the \"Startup Type\" and select \"Automatic\" under \"Startup Type\".<\/p>\n\n\n\n<p>To start a Windows service at the same time as the Windows OS starts, set it to &quot;Automatic Start.&quot; <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image is-resized is-style-border\"><img src=\"\/images\/camserver-winservice_startauto.png\" alt=\"\" width=\"245\" height=\"294\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3 id=\"svc_osuser\">OS user running the Windows service<\/h3>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>If no settings are made for the OS user that the Windows service runs as, CAMServer, it will be a Windows local account.<\/p>\n\n\n\n<p>To accommodate redundancy<a rel=\"noreferrer noopener\" href=\"https:\/\/chat-messenger.com\/en\/manual\/camserver\/load-balancing\/#load-balancing-settings\" data-type=\"URL\" data-id=\"https:\/\/chat-messenger.com\/manual\/camserver\/load-balancing#load-balancing-settings\" target=\"_blank\">When placing the DB file on a network drive<\/a>\u306f\u3001Windows\u30b5\u30fc\u30d3\u30b9\u306e\u5b9f\u884cOS\u30e6\u30fc\u30b6\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u30c9\u30e1\u30a4\u30f3\u30a2\u30ab\u30a6\u30f3\u30c8\u307e\u305f\u306f\u5c02\u7528\u306e\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u7528\uff09\u3002<\/p>\n\n\n\n<p>For the above account,<span class=\"swl-marker mark_blue\">Set full control access rights to the CAMServer folder and the shared folder.<\/span>This means that network drive access is possible even when running as a Windows service.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full is-resized is-style-border\"><img src=\"https:\/\/chat-messenger.com\/wp-content\/uploads\/2025\/03\/image-4.png\" alt=\"\" class=\"wp-image-11638\" width=\"275\" height=\"327\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"is-style-icon_info\"><span class=\"swl-fz u-fz-s\">If the host OS on the share side is Windows Server 2019 or later, guest authentication is disabled by default, and you cannot access the network drive even with a UNC path. This is because the local account of the Windows service does not have authentication information, and the connection is blocked due to SMB protocol restrictions.<\/span><\/p>\n\n\n\n<p class=\"is-style-icon_info\"><span class=\"swl-fz u-fz-s\">\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3059\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u306f\u3001 Log on as a service \u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002\u901a\u5e38\u3001\u300c\u30b5\u30fc\u30d3\u30b9\u300d\u7ba1\u7406\u753b\u9762\uff08services.msc\uff09\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6307\u5b9a\u3057\u3001[\u9069\u7528] \u3092\u62bc\u3057\u305f\u77ac\u9593\u306b\u3001Windows\u304c\u81ea\u52d5\u3067\u6a29\u9650\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u4ed8\u4e0e\u3057\u307e\u3059\u304c\u3001\u64cd\u4f5c\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u3001\u300c\u4ed6\u4eba\u306b\u6a29\u9650\uff08\u6a29\u5229\uff09\u3092\u4e0e\u3048\u308b\u6a29\u9650\u300d\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u3088\u3046GPO\u7b49\u3067\u5236\u5fa1\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u4ed8\u4e0e\u3067\u304d\u307e\u305b\u3093\u3002<\/span><\/p>\n\n\n\n<h3><a name=\"svc_clash\"><\/a>Automatic recovery in case of error<\/h3>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>In the unlikely event that the CAMServer service stops, you can restart it automatically by using the Windows service recovery function.<br>Select CAMServer in the service settings of the administrative tools, and from the &quot;Recovery&quot; tab in the properties, select &quot;Restart the service&quot; on the first error, etc.<\/p>\n\n\n\n<p class=\"is-style-icon_announce\">There have been no confirmed cases of CAMServer crashing, so this setting is not necessary.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full is-resized is-style-border\"><img src=\"https:\/\/chat-messenger.com\/wp-content\/uploads\/2025\/03\/image.png\" alt=\"\" class=\"wp-image-11615\" width=\"240\" height=\"285\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>*Please refer to the following for the meaning of each setting.<\/p>\n\n\n\n<p class=\"is-style-icon_pen has-xs-font-size\"><strong>First Error<br><\/strong>If the CAMServer service should stop for some reason, you can use the Windows Service Recovery feature to automatically restart it, so select &quot;Restart the service.&quot;<br><strong>The following error<\/strong><br>Specify the action to be taken if a forced termination occurs again after the &quot;first error&quot;. Since restarting the service after the second time is unlikely to solve the problem, select &quot;Do nothing&quot;.<br><strong>Subsequent errors<\/strong><br>Specify the action to be taken if a forced termination occurs again after the &quot;next error&quot;. Since restarting the service after the second time is unlikely to solve the problem, select &quot;Do nothing&quot;.<br><strong>Resetting the error count<\/strong><br>When a Windows service stops or fails, the number of failures is counted. Based on this count, you can set recovery actions for the &quot;first failure,&quot; &quot;second failure,&quot; and &quot;any subsequent failures.&quot; &quot;Reset the error count&quot; means that this failure count will be reset (returned to 0) after a certain period of time. A setting value of 1 will reset the error count after one day, which is the minimum number of days that can eliminate exceptional cases such as intermittent forced terminations from an operational standpoint.<br><strong>Restarting Services<\/strong><br>The setting value for how many minutes after the first error occurs whether to restart the system.<\/p>\n\n\n\n<h2><a name=\"svc_start\"><\/a>Starting and Stopping Windows Services<\/h2>\n\n\n\n<h3>Start as Windows Service<\/h3>\n\n\n\n<p>Start the service from the control panel, or execute \"Admin Menu\" -&gt; \"Service\" -&gt; \"Start Service\" in CAMServer.<\/p>\n\n\n\n<h4>Starting the service from the control panel<\/h4>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"https:\/\/chat-messenger.com\/wp-content\/uploads\/2025\/03\/image-1.png\" alt=\"\" class=\"wp-image-11620\" width=\"256\" height=\"189\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"is-style-icon_info\">Note that it is not possible to start the service from the control panel while the camserver.exe screen is already running.<\/p>\n<\/div>\n<\/div>\n\n\n\n<h4>CAMServer&#039;s &quot;Management Menu&quot; service launched<\/h4>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"https:\/\/chat-messenger.com\/wp-content\/uploads\/2025\/03\/image-2.png\" alt=\"\" class=\"wp-image-11622\" width=\"275\" height=\"172\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"is-style-icon_info\">After starting the service, camserver.exe with manually started windows will automatically stop<\/p>\n<\/div>\n<\/div>\n\n\n\n<h3>Stop Windows Service<\/h3>\n\n\n\n<p>Stop the service from the control panel or by manually running camserver.exe to safely stop the service and then start the screen.<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"https:\/\/chat-messenger.com\/wp-content\/uploads\/2025\/03\/image-3.png\" alt=\"\" class=\"wp-image-11623\" width=\"263\" height=\"193\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"is-style-icon_info\">Manually during service startup&nbsp;<em>camserver.exe<\/em>&nbsp;If you run the service, the running service will be stopped, and if you run it manually, the service will be stopped.&nbsp;<em>camserver.exe<\/em>&nbsp;It will be activated within a few seconds.<\/p>\n<\/div>\n<\/div>\n\n\n\n<h2><a name=\"svc_attention\"><\/a>Notes on the service version<\/h2>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>When migrating from the regular version, make sure that the startup startup of the regular version does not overlap with the \"automatic startup\" of the Windows service.<br><\/p>\n\n\n\n<p>If the device is running during startup, the procedure for releasing the device is as shown in the figure on the right.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image is-resized is-style-border\"><img src=\"https:\/\/chat-messenger.com\/images\/camserver-startup-del.png\" alt=\"\" width=\"254\" height=\"202\"\/><\/figure>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Overview of Windows Service CAMServer can also be run as a Windows service [\u2026]<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts\/878"}],"collection":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/comments?post=878"}],"version-history":[{"count":9,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts\/878\/revisions"}],"predecessor-version":[{"id":12520,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/posts\/878\/revisions\/12520"}],"wp:attachment":[{"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/media?parent=878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/categories?post=878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chat-messenger.com\/en\/wp-json\/wp\/v2\/tags?post=878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}