rodneyviana / ODSyncService

OneDrive service/DLL for Sync State
MIT License
93 stars 26 forks source link

OneDriveLib.dll is not loading #1

Closed ukreddy-erwin closed 5 years ago

ukreddy-erwin commented 6 years ago

Below is the output we are getting on every system. Even if we install onedrive client or not.

PS C:\Users\uday-\Downloads\New folder> Import-Module Powershell\OneDriveLib.dll Import-Module : The specified module 'Powershell\OneDriveLib.dll' was not loaded because no valid module file was found in any module directory. At line:1 char:1

PS C:\Users\uday-\Downloads\New folder> Import-Module .\ODNative.dll Import-Module : Could not load file or assembly 'file:///C:\Users\uday-\Downloads\New folder\ODNative.dll' or one of its dependencies. The module was expected to contain an assembly manifest. At line:1 char:1

rodneyviana commented 6 years ago

Right-click on the DLL and choose 'Unblock' and click 'Ok' Your environment may have a policy blocking what is downloaded from Internet and does not contain a digital signature.

See a screenshot here: https://blogs.msdn.microsoft.com/rodneyviana/2017/08/30/tool-to-generate-debugdiag-rule-for-sharepoint-based-on-event-id-tag-and-optionally-a-partial-message/

richahl commented 6 years ago

I got the same error when trying to load the module, but since I didn't have the unblock option under properties I had to download streams.exe from MS and remove the ntfs stream before it worked.

VertigoRay commented 6 years ago

You can also use PowerShell's Unblock-File function.

Why is this still open? :)