Advertisement
Guest User

Untitled

a guest
Apr 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. $URL = [string]'URL1','URL2','URL3'
  2. $Username = 'Username1','Username2','Username3'
  3. $Password = 'Password1','Password2','Password3'
  4.  
  5. $Default = [PSCustomObject]@{}
  6.  
  7. $Default | Add-Member -MemberType NoteProperty -Name 'URL' -Value $URL
  8. $Default | Add-Member -MemberType NoteProperty -Name 'Username' -Value $Username
  9. $Default | Add-Member -MemberType NoteProperty -Name 'Password' -Value $Password
  10.  
  11.  
  12.  
  13. This gives an output like:
  14. URL Username Password
  15. --- -------- --------
  16. {URL1, URL2, URL3} {Username1, Username2, Username3} {Password1, Password2, Password3}
  17.  
  18.  
  19.  
  20. I want the output to look like:
  21.  
  22. URL Username Password
  23. --- -------- --------
  24. URL1 Username1 Password1
  25. URL2 Username2 Password2
  26. URL3 Username3 Password3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement