Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Enter-PSSession -ComputerName win2 -Credential WIN2/Administrator
  2. $website = 0
  3.  
  4. While ($website -ne 20) {
  5. $website++
  6. New-WebAppPool -Name Website$website
  7. New-Item -ItemType directory -Path \\192.168.1.202\Q\Website$website
  8. New-Website -Name Website$website -HostHeader website$website.myhost.net -PhysicalPath \\192.168.1.202\Q\Website$website -ApplicationPool Website$website
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement