How to run an EXE requiring administrator privileges under a mount driver?

There is a scenario where an EXE requiring administrator privileges needs to run on a mounted disk, but it fails to run. What should I do to make it work?

welcome to the forum,

that works for me. many ways to run .exe with admin privleges, same as with any .exe

rclone: Version "v1.70.0" starting with parameters ["d:\\data\\rclone\\rclone.exe" "mount" "wasabi01:zork" "b:\\rclone\\mount\\wasabi01_zork" "--file-perms=0777" "--dir-cache-time=10s" "--log-file=.\\log.mount.wasabi01_zork.txt" "--log-level=DEBUG"]
runas /noprofile /user:administrator b:\rclone\mount\wasabi01_zork\fastcopy\fastcopy.exe
Enter the password for administrator:
Attempting to start b:\rclone\mount\wasabi01_zork\fastcopy\fastcopy.exe as user "EN10\administrator" ...

image

2025/06/19 21:53:53 DEBUG : rclone: Version "v1.70.1" starting with parameters ["rclone.exe" "mount" "localdisk:d:\test" "x:" "--file-perms=0777" "--dir-cache-time=10s" "--log-file=D:\download\log1.txt" "--log-level=DEBUG"]
2025/06/19 21:53:53 DEBUG : Creating backend with remote "localdisk:d:\test"
2025/06/19 21:53:53 DEBUG : Using config file from "C:\Users\happy\AppData\Roaming\rclone\rclone.conf"
2025/06/19 21:53:53 DEBUG : fs cache: renaming cache item "localdisk:d:\test" to be canonical "localdisk:d:/test"
2025/06/19 21:53:53 INFO : Local file system at d:/test: poll-interval is not supported by this remote
2025/06/19 21:53:53 DEBUG : Network mode mounting is disabled
2025/06/19 21:53:53 DEBUG : Mounting on "x:" ("localdisk d test")
2025/06/19 21:53:53 DEBUG : Local file system at d:/test: Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=localdisk d test"]
2025/06/19 21:53:53 DEBUG : Local file system at d:/test: Init:
2025/06/19 21:53:53 DEBUG : Local file system at d:/test: >Init:

i try it again, also run false.

please ,help me to make it work.

I can run the program with administrator privileges on Windows 10, but it doesn't work on Windows 11.

rclone v1.70.1

  • os/version: Microsoft Windows 11 Pro 24H2 24H2 (64 bit)
  • os/kernel: 10.0.26100.4351 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.24.4
  • go/linking: static
  • go/tags: cmount
rclone v1.70.1
- os/version: Microsoft Windows 11 Pro 24H2 24H2 (64 bit)
- os/kernel: 10.0.26100.4351 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: cmount