Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Enter-PSSession -ComputerName win2 -Credential WIN2/Administrator
- $website = 0
- While ($website -ne 20) {
- $website++
- New-WebAppPool -Name Website$website
- New-Item -ItemType directory -Path \\192.168.1.202\Q\Website$website
- New-Website -Name Website$website -HostHeader website$website.myhost.net -PhysicalPath \\192.168.1.202\Q\Website$website -ApplicationPool Website$website
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement