I used GNOME Disks to format my external drive to NTFS. Now the drive works correctly when I am booted into Ubuntu but not when I am booted into Windows 10. I have a dual-boot pc and want to use this hard drive to transfer files between my two operating systems.
I also tried formatting it with the command line
umount /dev/sda
mkfs.ntfs -F -f /dev/sda
I still got the same result; it works on Ubuntu but not on Windows.
On Windows 10, the hard drive only appears in Device Manager but not under 'My PC.' However, when I attempt to update the driver from Device Manager, I get a message that says 'Windows could not find drivers for your device.'
Here is a screenshot of the Device Manager window:

Edit: When I first wrote this question, I didn't explain very well why it was relevant to Ubuntu. I want to know how I can format the drive in Ubuntu so it will work for both Ubuntu and Windows. I have already tried both mkfs.ntfs
and the GNOME Disks app, but when they format the drive it only works on ubuntu. Since ntfs is supported by both Ubuntu and Windows, it should be possible to format a drive to ntfs in Ubuntu so that it will work for both systems without needing to format the drive using Windows.