diff --git a/Deployment/ExecutionPlan/InstallIIS/ExecutionPlan.txt b/Deployment/ExecutionPlan/InstallIIS/ExecutionPlan.txt new file mode 100644 index 00000000..bf3d2e97 --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/ExecutionPlan.txt @@ -0,0 +1,7 @@ +include Install-WebServer.ps1 + +call Install-WebServer + +reboot 0 + +out out.json diff --git a/Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat b/Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat new file mode 100644 index 00000000..0b6aae7e --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/GenerateJSON.bat @@ -0,0 +1 @@ +..\ExecutionPlanGenerator.exe ExecutionPlan.txt \ No newline at end of file diff --git a/Deployment/ExecutionPlan/InstallIIS/Install-WebServer.ps1 b/Deployment/ExecutionPlan/InstallIIS/Install-WebServer.ps1 new file mode 100644 index 00000000..5ec0a4be --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/Install-WebServer.ps1 @@ -0,0 +1,4 @@ +function Install-WebServer { + Import-Module ServerManager + Install-WindowsFeature Web-Server -IncludeManagementTools +} diff --git a/Deployment/ExecutionPlan/InstallIIS/out.json b/Deployment/ExecutionPlan/InstallIIS/out.json new file mode 100644 index 00000000..baeaec15 --- /dev/null +++ b/Deployment/ExecutionPlan/InstallIIS/out.json @@ -0,0 +1,12 @@ +{ + "Scripts": [ + "ZnVuY3Rpb24gSW5zdGFsbC1XZWJTZXJ2ZXIgew0KICAgIEltcG9ydC1Nb2R1bGUgU2VydmVyTWFuYWdlcg0KICAgIEluc3RhbGwtV2luZG93c0ZlYXR1cmUgV2ViLVNlcnZlciAtSW5jbHVkZU1hbmFnZW1lbnRUb29scw0KfQ0K" + ], + "Commands": [ + { + "Name": "Install-WebServer", + "Arguments": {} + } + ], + "RebootOnCompletion": 0 +} \ No newline at end of file