Grab *all* cookies from WebSession object

Been wanting to pull cookies from Websession without knowing the domain. I’ve been attempting to make a POSH version of this following solution:

https://stackoverflow.com/questions/13675154/how-to-get-cookies-info-inside-of-a-cookiecontainer-all-of-them-not-for-a-spe/36665793#36665793

However I’m having difficulty translating the InvokeMember into something appropriate for Powershell as I’m not familiar with reflection/invocation. Any ideas?

submitted by /u/virgnar
[link] [comments]

Leave a Reply