IIS에서 가상 폴더를 삭제하고 물리적 경로를 삭제하고 폴더에 압축 파일의 압축을 풀고 이전 이름의 IIS에서 가상 경로를 만드는 기능을 powershell에 작성했습니다. 2 단계의 문제 : 스크립트 파일 및 폴더 삭제를 시도하십시오. 중지하고 나쁜 생각 IIS 시작, 올바른 이해한다면IIS 서버에서 폴더를 올바르게 삭제하는 방법
Cannot remove item C:\inetpub\test\css: The directory is not empty. + CategoryInfo : WriteError: (css:DirectoryInfo) [Remove-Item], I OException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell .Commands.RemoveItemCommand + PSComputerName : test.cloudapp.net
:
...
get-childitem ($pathToIIs + "*") -recurse | remove-item -Force -recurse
...
는 PowerShell은 오류가 발생합니다. 그러면이 오류를 어떻게 수정합니까?