
作為安裝步驟之一克朗守護程式賽格溫在 Windows 中,值得(在 WinXP 上不是強制的,但自 Win7 以來似乎強烈建議)更改(以及其他一些修改)運行為剛安裝的 CRON 服務的屬性。
這是 GUI 方法視窗(抱歉,我的 Windows 是西班牙語),我可以在其中選擇任何其他使用者(在我的範例中為“cygrunsrv”,但也可以是任何其他使用者):
我已經查看了文檔,並且SC命令似乎沒有這種能力。我發現的只是這個選項允許服務與桌面互動:
sc config servicename type= interact type= own
但這不是我正在尋找的改變。
有沒有辦法透過命令列完成此操作?
答案1
您應該能夠使用obj=
和password=
params 來做到這一點sc config
(也許它取決於版本,但我找不到任何資訊)
跑步sc config /?
帶給我以下選擇:
CONFIG OPTIONS: NOTE: The option name includes the equal sign. type= <own|share|interact|kernel|filesys|rec|adapt> start= <boot|system|auto|demand|disabled> error= <normal|severe|critical|ignore> binPath= <BinaryPathName> group= <LoadOrderGroup> tag= <yes|no> depend= <Dependencies(separated by / (forward slash))> obj= <AccountName|ObjectName> DisplayName= <display name> password= <password>
完整描述在這裡:http://technet.microsoft.com/en-us/library/cc990290.aspx