the only way why someone can shutdown your machine remotely
are.
he or she could be a member of the administrators group on
your machine or he know your password or its your system
administrator is doing the remote shutdown.
to prevent this change your password and remove
domain/admins on your administrators group..
goodluck