从Powershell的多个服务器上的IIS备份
有人可以帮助我远程从PowerShell脚本备份多台服务器上的IIS。 我可以从powershell命令备份IIS。 backup-webconfiguration -name IIS_backup。 另外我有一个批处理脚本需要备份,但只适用于一台服务器。 我必须在本地login并将其作为批处理作业运行。 @echo off cls pushd "%WinDir%\System32\inetsrv" echo.| date | find /i "current">datetime1.tmp echo.| time | find /i "current">datetime2.tmp for /f "tokens=1,2,3,4,5,6" %%i in (datetime1.tmp) do ( echo %%n>datetime1.tmp ) for /f "tokens=1,2,3,4,5,6" %%i in (datetime2.tmp) do ( echo %%m>datetime2.tmp ) for /f "delims=/ tokens=1,2,3" %%i in (datetime1.tmp) do ( […]