When working in a domain you can use Group Policy to prevent the computer within it from going to sleep.
Launch Local Group Policy Editor (gpedit.msc)
Navigate to Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings
Open Policy called Allow Standby States (S1-S3) When Sleeping (Plugged In) and set value to Disabled
If necessary also do the same for Allow Standby States (S1-S3) When Sleeping (On Battery)
This essentially disables computers from going to sleep but does allow the users to override this setting if they choose to.
For more information on this see the link below:
No PC Sleep