sharepoint 使用feature 是用到的一些命令

如果用cmd命令時 加這句話cd  C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/BIN

如果sharepoint ManageMent shell直接輸入下面的命令行

安裝feature

在這個目錄下創建文件夾A

C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/TEMPLATE/FEATURES

在文件夾裏面創建feature.xml(必須的)

執行命令
  stsadm -o installfeature -filename     文件夾A\feature.xml -force(文件夾A是自己創建的)

重啓IIS:cmd命令行:iisreset

激活feature
stsadm -o activatefeature -filename  文件夾A\feature.xml -url 網站集地址      -force

卸載命令
stsadm -o uninstallfeature -filename TimerJobTag\feature.xml -force (如果不提示強制卸載可以不用加-force)

命令行:

停止作業
net stop sptimerv4

啓動作業
net start sptimerv4


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章