![sharepoint 管理服务器未启动导致 sharepoint 部署不稳定](https://linux22.com/image/502601/sharepoint%20%E7%AE%A1%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%9C%AA%E5%90%AF%E5%8A%A8%E5%AF%BC%E8%87%B4%20sharepoint%20%E9%83%A8%E7%BD%B2%E4%B8%8D%E7%A8%B3%E5%AE%9A.png)
当我将任何东西部署到各种 SharePoint 服务器时,我遇到一些包失败的问题,据我所知,唯一给出的错误如下所示。
The timer job for this operation has been created, but it will fail because the
administrative service for this server is not enabled. If the timer job is sched
uled to run at a later time, you can run the jobs all at once using stsadm.exe -
o execadmsvcjobs. To avoid this problem in the future, enable the Windows ShareP
oint Services administrative service, or run your operation through the STSADM.e
xe command line utility.
这是一个已知问题吗?我在 Google 上搜索了相关文本,但只找到了另一个遇到此问题并简单解决了问题的人。我正在尝试以编程方式批量部署解决方案,因此如果您事后必须返回并手动重做某些操作,这些错误会使整个代码变得毫无价值。
批量部署难道根本就不可能吗?
谢谢!
答案1
可以批量部署
@echo off
for %%f in (*.wsp) do (
echo File %%f
"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addsolution -filename "%%f"
"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o deploysolution -name "%%f" -allowgacdeployment -immediate -force
)
"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o copyappbincontent
"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o execadmsvcjobs
iisreset.exe
正如您在错误消息中看到的,使用 stsadm -o execadmsvcjobs。同时检查 IIS 是否所有应用程序池和网站都在运行。