-
Notifications
You must be signed in to change notification settings - Fork 5
/
install-web.bat
26 lines (18 loc) · 966 Bytes
/
install-web.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
:: Replace RDS Pages directory with ours
set PAGES=%SystemDrive%\Windows\Web\RDWeb\Pages
set RDSFACTOR_PAGES=%~dp0web\RDWeb\Pages
:: Add IIS AppCmd to path
set PATH=%PATH%;%windir%\system32\inetsrv\
echo ==^> Removing %PAGES%
::move %PAGES% %~dp0_pages_old
appcmd delete app "Default Web Site/RDWeb/Pages"
echo ==^> Adding RDSFactor RDWeb Pages to IIS
appcmd add app /site.name:"Default Web Site" /path:/RDWeb/Pages /physicalPath:"%RDSFACTOR_PAGES%
appcmd set app "Default Web Site/RDWeb/Pages" /applicationPool:RDWebAccess
:: Allow the application to configure authentication settings
appcmd unlock config -section:system.webServer/security/authentication/anonymousAuthentication
appcmd unlock config -section:system.webServer/security/authentication/windowsAuthentication
:: list available config settings: appcmd unlock config -section:?
:: These settings are also avail. from IIS -> Feature Delegation
echo ==^> IIS updated with RDSFactor pages