Symbolic links / symlinks on Windows machines?

I have code that’s tested in latest-windows on Github CI that determines if it’s possible to use symbolic links on the system.

It seems that on Github latest-windows the code always seems to run in “symlinks are possible” mode.

Is this correct? Do Github latest-windows machines allow symlinks?

If that is correct, is there a way to disable symlinks on a Github Windows machine to be closer to the typical Windows behavior?

This seems to be due to the fact that the Github Windows machines run CI tasks as Administrator. On Windows symbolic links are possible if you’re running as Administrator.

Here’s some more information about using symlinks on Windows. There are other ways to make this happen besides having Administrator privileges.

Another note.

Enabling Developer Mode or enabling the specific symbolic link policy seems to be key.