我正在开发一个脚本,它可以使用IIS appPOOL的调试对话框捕获转储。我可以使用.VB脚本,但是在这种情况下,业务需要powershell脚本。
我在网上找不到任何相关的职位。到目前为止,我甚至不知道,我们是否有一个用于调试诊断的powershell模块。有人能给我指明正确的方向吗?
发布于 2017-03-24 02:15:49
没有捕获IIS应用程序池转储的本机方法。但是您可以将这个批处理脚本转换为PS:
%windir%\system32\inetsrv\appcmd list wps /apppool.name:"Microsoft Team Foundation Server Application Pool" /text:WP.NAME > "%temp%\tfspid.txt"
:: ProcDump.exe (faster, reflects/clones the process for the dump to minimize the time the process is suspended (Windows 7 and higher only))
for /F %%a in (%temp%\tfspid.txt) do "%~dp0\procdump.exe" -accepteula -64 -ma -r %%a f:\dumps
pause参考链接:APP池转储
https://stackoverflow.com/questions/42989576
复制相似问题