{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/comments/183695770","pull_request_review_id":114740651,"id":183695770,"diff_hunk":"@@ -0,0 +1,81 @@\n+﻿###############\n+# Run from DC #\n+###############\n+\n+# Verify Running as Admin\n+$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] \"Administrator\")\n+If (!( $isAdmin )) {\n+    Write-Host \"-- Restarting as Administrator\" -ForegroundColor Cyan ; Start-Sleep -Seconds 1\n+    Start-Process powershell.exe \"-NoProfile -ExecutionPolicy Bypass -File `\"$PSCommandPath`\"\" -Verb RunAs \n+    exit\n+}\n+\n+$StartDateTime = get-date\n+Write-host \"Scripts started at $StartDateTime\"\n+\n+#Set PSScriptRoot\n+$PSScriptRootFolder = \"D:\\Scripts\"\n+\n+##### LAB Config #####\n+#Change the Servers here based on the servers you need to deploy\n+\n+$WAC = 'WAC'\n+$SMS_2008R2 = 'SMS2008R2'\n+$SMS_2012R2 = 'SMS_2012R2'\n+$SMS_2019 = 'SMS_2019'\n+\n+$Servers = ($WAC, $SMS_2012R2, $SMS_2019)\n+\n+#Enable firewall rules for servers\n+Invoke-Command -ComputerName $Servers -ScriptBlock { Get-NetFirewallRule -Name *FPS* | Enable-NetFirewallRule ; Enable-PSRemoting -Force -Confirm:$false }\n+Invoke-Command -ComputerName $Servers -ScriptBlock { Get-NetFirewallRule -Name *rpc* | Enable-NetFirewallRule }\n+Invoke-Command -ComputerName $Servers -ScriptBlock { Get-NetFirewallRule -Name *wmi* | Enable-NetFirewallRule } \n+\n+#Upgrade Powershell on 2008R2 server\n+IF ($SMS_2008R2) {    \n+    #Install requierd Roles on 2008R2 Server\n+    Write-host \"Installing IIS on 2008R2 Server\"\n+    Invoke-Command -ComputerName $SMS_2008R2 -ScriptBlock {\n+        Import-Module Servermanager\n+        Add-WindowsFeature Web-server -IncludeAllSubFeature\n+    }\n+\n+    #Wait for servers to come online before resuming\n+    Write-host \"Waiting for SMS2008R2 to come online again\"\n+    Restart-Computer -ComputerName $SMS_2008R2 -Protocol wsman -Wait -Force\n+    Start-Sleep -Seconds 30\n+\n+    ##Copy IIS files Hello World\n+    Write-host \"Copy IIS files to SMS2008R2\"\n+    Copy-Item \"$PSScriptRootFolder\\iisstart.htm\" -Destination \"\\\\$SMS_2008R2\\c$\\inetpub\\wwwroot\"","path":"Scenarios/StorageMigrationService/scenario.ps1","position":50,"original_position":50,"commit_id":"fc807e3140ab2b0f3ded6041e7c0224335d9a87d","original_commit_id":"fc807e3140ab2b0f3ded6041e7c0224335d9a87d","user":{"login":"jaromirk","id":9829838,"avatar_url":"https://avatars3.githubusercontent.com/u/9829838?v=4","gravatar_id":"","url":"https://api.github.com/users/jaromirk","html_url":"https://github.com/jaromirk","followers_url":"https://api.github.com/users/jaromirk/followers","following_url":"https://api.github.com/users/jaromirk/following{/other_user}","gists_url":"https://api.github.com/users/jaromirk/gists{/gist_id}","starred_url":"https://api.github.com/users/jaromirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaromirk/subscriptions","organizations_url":"https://api.github.com/users/jaromirk/orgs","repos_url":"https://api.github.com/users/jaromirk/repos","events_url":"https://api.github.com/users/jaromirk/events{/privacy}","received_events_url":"https://api.github.com/users/jaromirk/received_events","type":"User","site_admin":false},"body":"SMB might not be enabled on firewall. I'll rewrite it to copy using PSSession if you don't mind.","created_at":"2018-04-24T11:32:59Z","updated_at":"2018-04-24T11:32:59Z","html_url":"https://github.com/Microsoft/ws2016lab/pull/146#discussion_r183695770","pull_request_url":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/comments/183695770"},"html":{"href":"https://github.com/Microsoft/ws2016lab/pull/146#discussion_r183695770"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146","id":183689237,"html_url":"https://github.com/Microsoft/ws2016lab/pull/146","diff_url":"https://github.com/Microsoft/ws2016lab/pull/146.diff","patch_url":"https://github.com/Microsoft/ws2016lab/pull/146.patch","issue_url":"https://api.github.com/repos/Microsoft/ws2016lab/issues/146","number":146,"state":"open","locked":false,"title":"Adding Storage Migration Service Lab and changed deploy.ps1 script","user":{"login":"jantorep","id":35103552,"avatar_url":"https://avatars3.githubusercontent.com/u/35103552?v=4","gravatar_id":"","url":"https://api.github.com/users/jantorep","html_url":"https://github.com/jantorep","followers_url":"https://api.github.com/users/jantorep/followers","following_url":"https://api.github.com/users/jantorep/following{/other_user}","gists_url":"https://api.github.com/users/jantorep/gists{/gist_id}","starred_url":"https://api.github.com/users/jantorep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantorep/subscriptions","organizations_url":"https://api.github.com/users/jantorep/orgs","repos_url":"https://api.github.com/users/jantorep/repos","events_url":"https://api.github.com/users/jantorep/events{/privacy}","received_events_url":"https://api.github.com/users/jantorep/received_events","type":"User","site_admin":false},"body":"Added some lines to the deploy.ps1 script to be able to deploy 2008R2 servers and enable WinRM","created_at":"2018-04-24T10:24:47Z","updated_at":"2018-04-24T11:32:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c668570986906f59c827819eaf564f27b8f10f8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146/commits","review_comments_url":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146/comments","review_comment_url":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/ws2016lab/issues/146/comments","statuses_url":"https://api.github.com/repos/Microsoft/ws2016lab/statuses/fc807e3140ab2b0f3ded6041e7c0224335d9a87d","head":{"label":"jantorep:master","ref":"master","sha":"fc807e3140ab2b0f3ded6041e7c0224335d9a87d","user":{"login":"jantorep","id":35103552,"avatar_url":"https://avatars3.githubusercontent.com/u/35103552?v=4","gravatar_id":"","url":"https://api.github.com/users/jantorep","html_url":"https://github.com/jantorep","followers_url":"https://api.github.com/users/jantorep/followers","following_url":"https://api.github.com/users/jantorep/following{/other_user}","gists_url":"https://api.github.com/users/jantorep/gists{/gist_id}","starred_url":"https://api.github.com/users/jantorep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantorep/subscriptions","organizations_url":"https://api.github.com/users/jantorep/orgs","repos_url":"https://api.github.com/users/jantorep/repos","events_url":"https://api.github.com/users/jantorep/events{/privacy}","received_events_url":"https://api.github.com/users/jantorep/received_events","type":"User","site_admin":false},"repo":{"id":130212378,"name":"ws2016lab","full_name":"jantorep/ws2016lab","owner":{"login":"jantorep","id":35103552,"avatar_url":"https://avatars3.githubusercontent.com/u/35103552?v=4","gravatar_id":"","url":"https://api.github.com/users/jantorep","html_url":"https://github.com/jantorep","followers_url":"https://api.github.com/users/jantorep/followers","following_url":"https://api.github.com/users/jantorep/following{/other_user}","gists_url":"https://api.github.com/users/jantorep/gists{/gist_id}","starred_url":"https://api.github.com/users/jantorep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantorep/subscriptions","organizations_url":"https://api.github.com/users/jantorep/orgs","repos_url":"https://api.github.com/users/jantorep/repos","events_url":"https://api.github.com/users/jantorep/events{/privacy}","received_events_url":"https://api.github.com/users/jantorep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jantorep/ws2016lab","description":"Windows Server 2016 rapid lab deployment scripts","fork":true,"url":"https://api.github.com/repos/jantorep/ws2016lab","forks_url":"https://api.github.com/repos/jantorep/ws2016lab/forks","keys_url":"https://api.github.com/repos/jantorep/ws2016lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jantorep/ws2016lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jantorep/ws2016lab/teams","hooks_url":"https://api.github.com/repos/jantorep/ws2016lab/hooks","issue_events_url":"https://api.github.com/repos/jantorep/ws2016lab/issues/events{/number}","events_url":"https://api.github.com/repos/jantorep/ws2016lab/events","assignees_url":"https://api.github.com/repos/jantorep/ws2016lab/assignees{/user}","branches_url":"https://api.github.com/repos/jantorep/ws2016lab/branches{/branch}","tags_url":"https://api.github.com/repos/jantorep/ws2016lab/tags","blobs_url":"https://api.github.com/repos/jantorep/ws2016lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jantorep/ws2016lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jantorep/ws2016lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/jantorep/ws2016lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jantorep/ws2016lab/statuses/{sha}","languages_url":"https://api.github.com/repos/jantorep/ws2016lab/languages","stargazers_url":"https://api.github.com/repos/jantorep/ws2016lab/stargazers","contributors_url":"https://api.github.com/repos/jantorep/ws2016lab/contributors","subscribers_url":"https://api.github.com/repos/jantorep/ws2016lab/subscribers","subscription_url":"https://api.github.com/repos/jantorep/ws2016lab/subscription","commits_url":"https://api.github.com/repos/jantorep/ws2016lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/jantorep/ws2016lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/jantorep/ws2016lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/jantorep/ws2016lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/jantorep/ws2016lab/contents/{+path}","compare_url":"https://api.github.com/repos/jantorep/ws2016lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jantorep/ws2016lab/merges","archive_url":"https://api.github.com/repos/jantorep/ws2016lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jantorep/ws2016lab/downloads","issues_url":"https://api.github.com/repos/jantorep/ws2016lab/issues{/number}","pulls_url":"https://api.github.com/repos/jantorep/ws2016lab/pulls{/number}","milestones_url":"https://api.github.com/repos/jantorep/ws2016lab/milestones{/number}","notifications_url":"https://api.github.com/repos/jantorep/ws2016lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jantorep/ws2016lab/labels{/name}","releases_url":"https://api.github.com/repos/jantorep/ws2016lab/releases{/id}","deployments_url":"https://api.github.com/repos/jantorep/ws2016lab/deployments","created_at":"2018-04-19T12:29:56Z","updated_at":"2018-04-24T10:20:53Z","pushed_at":"2018-04-24T10:20:52Z","git_url":"git://github.com/jantorep/ws2016lab.git","ssh_url":"git@github.com:jantorep/ws2016lab.git","clone_url":"https://github.com/jantorep/ws2016lab.git","svn_url":"https://github.com/jantorep/ws2016lab","homepage":"","size":25635,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:dev","ref":"dev","sha":"bfdc7bd0052803bc3764cf607ccd55919a3aba3e","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":56715782,"name":"ws2016lab","full_name":"Microsoft/ws2016lab","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/ws2016lab","description":"Windows Server 2016 rapid lab deployment scripts","fork":false,"url":"https://api.github.com/repos/Microsoft/ws2016lab","forks_url":"https://api.github.com/repos/Microsoft/ws2016lab/forks","keys_url":"https://api.github.com/repos/Microsoft/ws2016lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/ws2016lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/ws2016lab/teams","hooks_url":"https://api.github.com/repos/Microsoft/ws2016lab/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/ws2016lab/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/ws2016lab/events","assignees_url":"https://api.github.com/repos/Microsoft/ws2016lab/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/ws2016lab/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/ws2016lab/tags","blobs_url":"https://api.github.com/repos/Microsoft/ws2016lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/ws2016lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/ws2016lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/ws2016lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/ws2016lab/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/ws2016lab/languages","stargazers_url":"https://api.github.com/repos/Microsoft/ws2016lab/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/ws2016lab/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/ws2016lab/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/ws2016lab/subscription","commits_url":"https://api.github.com/repos/Microsoft/ws2016lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/ws2016lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/ws2016lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/ws2016lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/ws2016lab/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/ws2016lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/ws2016lab/merges","archive_url":"https://api.github.com/repos/Microsoft/ws2016lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/ws2016lab/downloads","issues_url":"https://api.github.com/repos/Microsoft/ws2016lab/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/ws2016lab/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/ws2016lab/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/ws2016lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/ws2016lab/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/ws2016lab/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/ws2016lab/deployments","created_at":"2016-04-20T19:37:09Z","updated_at":"2018-04-23T19:55:37Z","pushed_at":"2018-04-24T10:24:48Z","git_url":"git://github.com/Microsoft/ws2016lab.git","ssh_url":"git@github.com:Microsoft/ws2016lab.git","clone_url":"https://github.com/Microsoft/ws2016lab.git","svn_url":"https://github.com/Microsoft/ws2016lab","homepage":"","size":25750,"stargazers_count":150,"watchers_count":150,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":51,"open_issues":3,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146"},"html":{"href":"https://github.com/Microsoft/ws2016lab/pull/146"},"issue":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/issues/146"},"comments":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/ws2016lab/statuses/fc807e3140ab2b0f3ded6041e7c0224335d9a87d"}},"author_association":"NONE"}}
{"actor":{"display_login":"jaromirk"}}