We have a terminal server running Windows 2013 R2. We need to run an application that we wrote to periodically register a .dll file as the domain administrator. The code works on a computer without UAC enabled.
Once UAC is enabled the code will no longer work. Please see the function attached.