Jump to content

Recommended Posts

Posted (edited)

Hi All,

I'm having issues with mapping Office 365 sharepoint to Windows Explorer (WebDav) for more than 5 days, they have a cookie that is set when you access the site that lasts for 5 days, if you visit the site again within 5 days the cookie is refreshed (https://docs.microsoft.com/en-us/office365/enterprise/session-timeouts) otherwise the cookie expires and trying to access the mapped drive it error's out until you browse to the site in IE again.

I've used similar code to the below, but from what I can find the window can't run hidden with UAC enabled, so that's not going to be useful (url replaced)

#include <IE.au3>
$oIE = _IECreate("https://www.google.com.au/", 0, 0)
$iePage = _IEDocReadHTML($oIE)
_IEQuit($oIE)

Anyone have any suggestions as to how I might be able to refresh the cookie in IE without showing anything to the user?

Thanks!

Edited by WoodGrain

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...