This message was deleted.
# _general
s
This message was deleted.
n
If anyone knows of a way to import cookies via some sort of script, your next case of beer is on me.
j
@Guy Leech you like scripts, and I’m pretty sure everyone likes beer
k
Do you call it just like "C:\Windows\system32\ieframe.dll,ImportCookieFileByProcess \\server\share\cookies.txt" or do you call it with rundll32.exe like "rundll32.exe C:\Windows\system32\ieframe.dll,ImportCookieFileByProcess \\server\share\cookies.txt"?
n
I've tried every method. With rundll32, without. With quotes, without.
Also tried using a local file to rule out the UNC path to no avail.
g
You can't call a dll directly from a script/cmd/PowerShell so you're right to run it via rundll32.exe. When I run your command line prefixed with rundll32 then procmon shows rundll32 loading wininet.dll, which makes sense, and then trying to access the UNC so it looks to me like it is trying to work. If I create a dummy text file then ir reads it too This is on Win10 1909
n
Ugh, sorry, I am using rundll32.exe in my WEM task.
It doesn't seem to be importing the cookie, though.
OH FFS.
I apparently owe myself a case of beer. The cookies I was using very clearly expired. Re-exporting them from my local browser and using that file to reimport worked.
This entire day is a wash and I can't believe myself.
g
Happens to all of us at some point