- # powershell start IIS
- $SiteName = "DefaultWebSite"
- $TargetRoot = "N:\wwwroot"
- # Install minimal IIS features
- Write-Host "Installing minimal IIS features..." -ForegroundColor Cyan
- Install-WindowsFeature Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors -IncludeManagementTools
- # Configure IIS site root
- Import-Module WebAdministration
- Set-ItemProperty "IIS:\Sites\$SiteName" -Name physicalPath -Value $TargetRoot
- # Restart IIS
- iisreset
powershell start IIS
Posted by Anonymous on Tue 28th Oct 2025 22:48
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
nrubsig.kpaste.net RSS