close
附註:本文僅屬記錄與經驗分享且在非乾淨電腦中安裝,若有遺漏或錯誤煩請指正,如有侵權請來信告知。
[expand title="發表日期:2015/01/29 最後更新:2015/01/29" alt="點選觀看詳細更新記錄"]

  • 2015/01/29, 新增文章


[/expand]

0.目錄



  1. 問題描述

  2. 解決方案

  3. 參考資料

  4. 後記







  • 需要準備的檔案:無







1.問題描述


起因是我把DeltaCopy服務密碼打錯,又找不到修改的按鈕,正想說把Windows的服務移除,卻發現右鍵選單中沒有直接移除的選項,所以就找了一下發現要移除服務必須輸入指令才行。


此篇文章主要以移除DeltaCopy服務為出發點,順便講解怎麼移除Windows的服務


環境:Windows 8



2.解決方案


首先開啟電腦管理介面




  • 可以按組合按鍵 [Windows + R] 開啟執行命令框,然後輸入 “compmgmt.msc" 開啟電腦管理

  • 或是在 Windows 8 的開始按鈕上 ( 或是畫面左下角 (最角落)) 按右鍵 > 選擇電腦管理


[caption id="attachment_911" align="aligncenter" width="363"][Rsync]解決Could not start the service問題 開啟電腦管理[/caption]

找到要移除的服務,本文以DeltaCopy為例,找到DeltaCopy項目,點選 右鍵 > 內容 查看服務名稱DeltaCopyService


接著用系統管理員身分開啟命令提示字元(cmd),並輸入指令:


sc delete "DeltaCopyService


(將DeltaCopyService換成你要移除的服務名稱)


當出現 [SC] DeleteService 成功 就完成了


NASuseRsyncToWindows (2)

 

而針對DeltaCopyService查了一下,這個問題在官方網站上列為常見問題,原文說明如下:


[expand title="點擊展開" alt="點擊展開"]














Question: How do I uninstall / unregister DeltaCopy Server Service
Answer: Follow the steps below to unregister DeltaCopy service with the OS. IMPORTANT: This method does not remove any files, all it does is modifies some registry settings so that the Windows OS does not treat DeltaCopy as a Windows Service.


  1. Stop the service if it is running in the background. This can be done either from DeltaCopy Server application or from Windows Control Panel.

  2. Open a Console (DOS) window

  3. Using the cd command, change the directory to location where DeltaCopy is installed

  4. Type the following at the prompt:
    DCServce /UNINSTALL


You should get a message confirming the removal of this service.

To reinstall the service, type:

DCServce /INSTALL

[/expand]


大致的用法就是先停止DeltaCopy (你可以從Windows服務中停止,或是開啟DeltaCopy UI點選Stop Service去停止


如果沒有終止會出現錯誤:Exception EOSError in module XXX (DCServce.exe) at 00000000 System Error. Code: 5 存取被拒


RemoveDeltaCopyService1


接著用系統管理員身分開啟命令提示字元(cmd),並輸入移動到DeltaCopy安裝的目錄並下達指令:


(我的執行檔放在 "C:\Users\CIIS-Lab\Desktop\DeltaCopyRaw" ,請改成你的安裝路徑)




  • cd C:\Users\CIIS-Lab\Desktop\DeltaCopyRaw

  • DCServce /UNINSTALL


RemoveDeltaCopyService2


如果出現Service uninstalled successfully就代表成功移除了


延伸閱讀:




3.參考資料



4.後記


其他的服務移除模式大同小異


DelaCopy真是個好東西,介面功能不完整,讓我學到好多東西XD

arrow
arrow
    全站熱搜

    Robarter 發表在 痞客邦 留言(0) 人氣()