Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. powershell>
  2. Install-WindowsFeature Web-Server -IncludeManagementTools -IncludeAllSubFeature
  3. remove-item -recurse c:\inetpub\wwwroot\*
  4. (New-Object System.Net.WebClient).DownloadFile("http://www.immersionday.com/scripts/ec2-windows.zip", "c:\inetpub\wwwroot\ec2-windows.zip")
  5.  
  6. $shell = new-object -com shell.application
  7. $zip = $shell.NameSpace("c:\inetpub\wwwroot\ec2-windows.zip")
  8. foreach($item in $zip.items())
  9. {
  10. $shell.Namespace("c:\inetpub\wwwroot\").copyhere($item)
  11. }
  12. </powershell>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement