To prevent Windows from going into sleep mode after certain period of inactivity and lose your license from the server license and the software goes to demo mode you can disable sleep mode completely via Local Group Policy.
Start Local Group Policy Editor. Press WIN+R and write gpedit.msc
This is how the “Local Group Policy Editor” looks like.
Navigate to Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings
Open Policy called “Allow standby states (S1-S3) when sleeping (plugged in)”. Do later the same settings with “Allow standby states (S1-S3) when sleeping (on battery)”.
Set the policy to “Disabled”.
Here is both sleeping sessions set to disabled. This policy will disable all sleep modes completely.
Sleep in Start Menu disabled.
This is how it looked before the settings were made.