Open MS Office files in Office Online with a simple double click - NOW POSSIBLE! - Powershell to the Rescue~
I dug around the internet for a solution and couldn't find anything worth diving into. Even the one "paid" solution (Files App) that I read might be able to do it, didn't seem like it could when I tested it and it also would be a pain to deploy at any scale but your own computer.
So I did what any developer minded IT person would do and dug through open source solutions, still nothing but one for the completely wrong OS ([https://github.com/bewithdhanu/office-online-bridge-macos](https://github.com/bewithdhanu/office-online-bridge-macos)). This project gave me the idea to try porting the same work around to Windows. I sort of did it. Basically the same idea but used the existing "View Online" function from the context menu and wrote a PowerShell script to execute it. The script was then improved with an exe wrapper to make it more user friendly.
I am pretty surprised this solution hasn't been made before, but here it is now! (**AI Disclosure:** I wrote the readme using AI and used it to help create my exe wrappers via the compile.ps1 script. All other components were written largely by me with some assistance from AI to grab basic methodology on getting/triggering functions from the context menu)
[https://github.com/Fireant456/M365-Bridge](https://github.com/Fireant456/M365-Bridge)
It is bundled with an installer that can be deployed silently. Only requirement (at the moment) is that your files you are attempting to open must be in a OneDrive synced folder. If they are not an error will tell you they need to be. I might work to add automatic handling of uploading files to a temporary OneDrive directory and writeback to the original location in order to seamlessly handle non-synced file editing, but I don't require that in my use case. Happy to take pull requests if anyone wants to give it a shot.
Would love any feedback. Enjoy!