Giter Club home page Giter Club logo

onedrivemapperv5's Introduction

onedrivemapperv5's People

Contributors

jflieben avatar

Stargazers

seanmamasde avatar Boyd Fields avatar TeamLogicITCommerceCA avatar  avatar Sparkle263 avatar  avatar Ângelo Azevedo avatar  avatar Nicole Ahmed avatar  avatar  avatar Simon Jones avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

onedrivemapperv5's Issues

Edge Driver Issue: Looking for Input

Looking for some input as to the behavior below resulting in the following. It was resolved by a subsequent logout/login - data on that also below. Any help is appreciated!

RROR | Failed to load Edge driver, cannot continue. error details: Exception setting "Size":

08/07/2024 15:45:47 | INFO | Loading Edge driver C:\Users\joe_test_2\AppData\Roaming\msedgedriver.exe
08/07/2024 15:45:55 | WARNING | Edge driver not present at C:\Users\joe_test_2\AppData\Roaming\msedgedriver.exe, will try to download automatically from trusted source
08/07/2024 15:46:03 | INFO | Your Edge version (127.0.2651.86) and Edge Driver version () do not match, attempting to auto update
08/07/2024 15:46:10 | INFO | Downloading latest version from https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/127.0.2651.86/edgedriver_win64.zip to C:\Users\joe_test_2\AppData\Roaming
08/07/2024 15:56:57 | INFO | Updated to version from https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/127.0.2651.86/edgedriver_win64.zip to C:\Users\joe_test_2\AppData\Roaming
08/07/2024 15:56:57 | INFO | Edge driver present and not blocked by zoning, loading...
08/07/2024 15:58:34 | ERROR | Failed to load Edge driver, cannot continue. error details: Exception setting "Size": "The HTTP request to the remote WebDriver server for URL http://localhost:63353/session/8ed1271d48008ee09110398ab724b940/window/rect timed out after 60 seconds."
08/07/2024 15:59:14 | WARNING | restartExplorer is set to False, if you're redirecting folders they may not show up

Successful launch:
08/07/2024 16:29:19 | INFO | Loading Edge driver C:\Users\joe_test_2\AppData\Roaming\msedgedriver.exe
08/07/2024 16:29:21 | INFO | Discovered Edge driver v127.0.2651.86 at C:\Users\joe_test_2\AppData\Roaming\msedgedriver.exe
08/07/2024 16:29:21 | INFO | Your Edge version and Edge Driver version match

error if used as remote app

0
INFO | -----07/25/2024 00:52:09 OneDriveMapper v5.15 - tech on AVD starting-----
INFO | OnedriveMapper is running from C:\test INFO | Script elevation level: User INFO | Set TLS protocol version to prefer v1.2 INFO | Loading Selenium driver (C:\Users\tech\AppData\Roaming\WebDriver.dll) WARNING | Selenium driver not present at C:\Users\tech\AppData\Roaming\WebDriver.dll, trying to download automatically from trusted source
INFO | Selenium driver downloaded
INFO | Selenium driver present and not blocked by zoning, loading...

GAC Version Location --- ------- -------- False v4.0.30319 INFO | Selenium loaded successfully INFO | Loading CookieSetter... INFO | Test cookie set successfully
INFO | You are tech running on Windows 10 with Powershell version 5 and Edge version 126.0.2592.113
INFO | .NET V4 client version: 4.8.09037
INFO | loading interop service
INFO | interop service loaded
ERROR | ERROR: WebDav File Locking support is enabled, this could cause files to become locked in your OneDrive or Sharepoint site
WARNING | Maximum file upload size is set to 48 MB
INFO | NOTICE: IE Security zones ambiguous - checking both computer and user
INFO | NOTICE: tenant-my.sharepoint.com found in IE Trusted Sites on user level (through GPO)
INFO | NOTICE: tenant.sharepoint.com found in IE Trusted Sites on user level (through GPO)
INFO | NOTICE: tenant-my.sharepoint.com found in IE Trusted Sites on machine level (through GPO)
INFO | NOTICE: tenant.sharepoint.com found in IE Trusted Sites on machine level (through GPO)
INFO | Detected running explorer process
INFO | IE Automatic Proxy Detection is already disabled
INFO | Loading Edge driver C:\Users\tech\AppData\Roaming\msedgedriver.exe
WARNING | Edge driver not present at C:\Users\tech\AppData\Roaming\msedgedriver.exe, will try to download automatically from trusted source
INFO | Your Edge version (126.0.2592.113) and Edge Driver version () do not match, attempting to auto update
INFO | Downloading latest version from https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/126.0.2592.113/edgedriver_win64.zip to C:\Users\tech\AppData\Roaming
INFO | Updated to version from https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/126.0.2592.113/edgedriver_win64.zip to C:\Users\tech\AppData\Roaming
INFO | Edge driver present and not blocked by zoning, loading...
INFO | Edge loaded successfully
INFO | Attempting to detect username at https://login.microsoftonline.com/login.srf?msafed=0, waited for 2 seconds
INFO | Encountered a dialog, showing dialog to user
Argument types do not match
At C:\test\MapOneDrive.ps1:801 char:9

  •     [Win32SetWindow]::SetForegroundWindow($global:cachedHwnds)
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (:) [], ArgumentException
    • FullyQualifiedErrorId : System.ArgumentException

Script information different from Sharepoint information

Hello!

First of all, thank you very much for the script, we have used it a lot here!

I received some support requests, some folders are appearing mapped to the user, however, with nothing inside. Accessing Sharepoint through the normal website, the files are there normally.

In Script, I don't get any error message. Do you have any idea what could be causing this 'bug'?
This bug is occurring for more than one user from different tenants.

Encountering problems with $forceHideEdge set to $true

Hello, I am not sure if that is the newer versions of Edge (v125+), but we've been having issue with OneDriveMapper for a few weeks, sporadically. It looks like I was able to fix it by modifying the block

if($forceHideEdge){ $global:edgeOptions.addArguments("headless") }

to

if($forceHideEdge){ $global:edgeOptions.addArguments("--headless=new") }

Otherwise, setting $forceHideEdge = $false also fixed the issue, but that wasn't an option for us.

Hope this can help someone

Microsoft Edge crashes

Whilst running the mapper on 5.15 Edge crashes with the following events in powershell.

INFO | -----11/09/2023 13:01:59 OneDriveMapper v5.15 - adminsv on AAREON-RDSH06 starting-----
INFO | OnedriveMapper is running from C:\Users\AdminSV\Downloads
INFO | Script elevation level: User
INFO | Set TLS protocol version to prefer v1.2
INFO | Loading Selenium driver (C:\Users\AdminSV\AppData\Roaming\WebDriver.dll)
INFO | Selenium driver present and not blocked by zoning, loading...

GAC Version Location


False v4.0.30319
INFO | Selenium loaded successfully
INFO | Loading CookieSetter...
INFO | Test cookie set successfully
INFO | You are adminsv running on Windows 10 with Powershell version 5 and Edge version 119.0.2151.44
INFO | .NET V4 client version: 4.8.03761
INFO | loading interop service
INFO | interop service loaded
ERROR | ERROR: WebDav File Locking support is enabled, this could cause files to become locked in your OneDrive or Sharepoint site
WARNING | Maximum file upload size is set to 48 MB
INFO | NOTICE: IE Security zones ambiguous - checking both computer and user
INFO | NOTICE: lhp-my.sharepoint.com found in IE Trusted Sites on user level
INFO | NOTICE: lhp.sharepoint.com found in IE Trusted Sites on user level
INFO | Detected running explorer process
INFO | IE Automatic Proxy Detection is not yet disabled, attempting to disable...
INFO | IE Automatic Proxy Detection disabled
INFO | Loading Edge driver C:\Users\AdminSV\AppData\Roaming\msedgedriver.exe
INFO | Discovered Edge driver v119.0.2151.44 at C:\Users\AdminSV\AppData\Roaming\msedgedriver.exe
INFO | Your Edge version and Edge Driver version match
INFO | Edge driver present and not blocked by zoning, loading...
ERROR | Failed to load Edge driver, cannot continue. error details: Exception calling ".ctor" with "2" argument(s): "session not created: Microsoft Edge failed to start:
crashed.
(chrome not reachable)
(The process started from msedge location C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe is no longer running, so msedgedriver is assuming that msedge has
crashed.) (SessionNotCreated)"
You cannot call a method on a null-valued expression.

I can't locate anything in event viewer why Edge crashed. Any help would be most appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.