小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

命令行更改服務(wù)啟動方式

 周巍的森林 2007-01-08
          大家都知道開啟和停止服務(wù)要用命令net start servicename和net stop servicename吧

 

但是怎么才能在命令行下設(shè)置一個服務(wù)的啟動狀態(tài)呢?比如說禁用它?

系統(tǒng)自帶的東東里可能有,但是我沒研究過,我只說pstools里帶的psservice命令

在命令行下輸入psservice/?命令可以看到使用說明:

Usage: psservice [\\Computer [-u Username [-p Password]]] <cmd> <optns>
Cmd is one of the following:
query Queries the status of a service
config Queries the configuration
start Starts a service
stop Stops a service
restart Stops and then restarts a service
pause Pauses a service
cont Continues a paused service
depend Enumerates the services that depend on the one specified
find Searches for an instance of a service on the network

這是psservice命令的參數(shù)列表,但是今天我們用到的是這個列表里沒有出現(xiàn)的一個參數(shù): setconfig

比如說要禁用Uninterruptible Power Supply服務(wù)(UPS),我們知道它的服務(wù)名稱是UPS,那么只要輸入以下命令:

psservice setconfig ups disabled

就可以把這個服務(wù)禁用掉了

其中的disabled可以換成auto和demand,分別是對應(yīng)自動和手動

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多