Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. $Appcmd = [System.Environment]::SystemDirectory + "inetsrvappcmd.exe"
  2.  
  3. & $appcmd --% set config -section:system.applicationHost/applicationPools /+""[name='$Task.eProto_Pool'].environmentVariables.[name='PRODUCT_NAME',value='eProto']"" /commit:apphost"
  4.  
  5. $MyString = @{Name = "Stephen";Value="CoolDude"}
  6.  
  7. >$MyString
  8.  
  9. Name Value
  10. ---- -----
  11. Value CoolDude
  12. Name Stephen
  13.  
  14. write-host " The user $MyString.Name is a $MyString.Value"
  15. The user System.Collections.Hashtable.Name is a System.Collections.Hashtable.Value
  16.  
  17. write-host " The user $($MyString.Name) is a $($MyString.Value)"
  18. The user Stephen is a CoolDude
Add Comment
Please, Sign In to add comment