- Start Server Manager (servermanager.msc)
- Go to the top node named "Server Manager (SERVERNAME)"
- On the right side, under server summary>Security information, disable IE Enhanced Security Configuration (ESC) for whoever you like.
So you don't have to reinvent the wheel.