I have Parallels installed on an M1 Mac. In Parallels, I have a Windows 11 Pro VM. Parallels is configured to share Windows files with MacOS.
This is done via the Network tab in the Finder.
So, to mount the Windows OneDrive in macOS, I need to:
- Open Finder.
- Click the Network icon in the sidebar.
- Click Windows 11.
- Click [OneDrive] Windows 11.
I have a bash script in macOS that modifies some files on the Windows OneDrive.
When I do the steps above, the Windows OneDrive is mounted at "/Volumes/[OneDrive] Windows 11/imports"
However, if I put the Parallels VM to sleep and then wake it up, I have to manually open Finder and click through the steps to mount OneDrive again.
Is there a way to automatically mount OneDrive in Windows on Parallels (a network drive that is always in the same place) from within a bash script so I can just execute the script instead of manually mounting the drive each time?
Network in Finder
After clicking on Windows 11