mirror of
https://github.com/jakobadam/RDSFactor.git
synced 2025-06-11 06:54:29 +02:00
Script for replacing RDS Pages with ours
This commit is contained in:
parent
c038fe79a1
commit
2370eaa10a
1 changed files with 23 additions and 0 deletions
23
deploy-web.bat
Normal file
23
deploy-web.bat
Normal file
|
@ -0,0 +1,23 @@
|
|||
@echo off
|
||||
:: Replace RDS Pages directory with ours
|
||||
|
||||
set PAGES=%SystemDrive%\Windows\Web\RDWeb\Pages
|
||||
set RDSFACTOR_PAGES=%~dp0RDSFactorWeb\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%
|
||||
|
||||
:: list available config settings: appcmd unlock config -section:?
|
||||
|
||||
appcmd unlock config -section:system.webServer/security/authentication/anonymousAuthentication
|
||||
appcmd unlock config -section:system.webServer/security/authentication/windowsAuthentication
|
||||
|
||||
echo ==^> IIS updated with RDSFactor pages
|
Loading…
Add table
Add a link
Reference in a new issue