:::: MENU ::::

MCSA, MCSD, MCPS, MCTS, MCP, Developer, Consultant, Solution Architect

 Write-Host "Mount Windows Server ISO File" -ForegroundColor Cyan

Mount-DiskImage -ImagePath $winImagePath

Write-Host "Completed Mounting Windows Server ISO File" -ForegroundColor Green

 

############# INSTALLING WINDOWS FEATURES###########

Import-Module ServerManager

Write-Host "Installing Windows Features" -ForegroundColor Cyan

Add-WindowsFeature Web-Server,Web-WebServer,Net-Framework-Features,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,

Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,

Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,

Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,

Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer –Source $winSource

Write-Host "Completed Installing Windows Features" -ForegroundColor Green

 

############# DISMOUNTING ISO FILE###########

Write-Host "Dismounting Windows Server ISO File" -ForegroundColor Cyan

Dismount-DiskImage -ImagePath $winImagePath

Write-Host "Completed Dismounting Windows Server ISO File" -ForegroundColor Green

0 comments:

Post a Comment

Want more information? Contact