I am trying to make a lot symbolic links for my directories and files and manually i use mklink command to make them. Oddly enough, this command requires admin level privileges to create links.
How can i use mklink via ansible with admin privileges to create symbolic links ?
I am using windows server 2012 R2. Disabling UAC doesn’t seem like a good idea, specially with my automation scripts on a regular basis. I am connecting via admin account obviously but that doesn’t seem to be enough for making a symlink. I will have to start a command shell using ‘Run as admin’.