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:

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