Method locking / unlocking a distance of a machine

The present invention relates to a state change method, locked or unlocked, a target device (PC1) having a security service (SES1) and a session management module (M1). The state change method comprises the steps of: - receiving by said Security Service (SES1) a request (RQ) is an application (DDE) change of state of the target computer (PC1), said request ( RQ) including at least identification information (ID) of a user (USR2) a source machine (PC2); - From said security service (SES1), check access rights to said target machine (PC1) associated with said user (USR2) from the source machine (PC2) allow a change of state of the target machine (PC1 ) by said user (USR2); - If so, from said security service (SES1), send a status change message to the session management module (M1) of said target machine (PC1) and proceed audit status change by said module session management (M1).