Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $SM = Get-IISServerManager
  2. $Site = $SM.Sites.Item("site") #find our site
  3. $Site.Applications[0].ApplicationPoolName = "MyPool" #change an appool of the default application
  4. $SM.CommitChanges()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement