Most of the time, when we leave the computer, there are some poor quality people who peek at the data in our computer, which leads to the disclosure of our important information. Is there any way to lock a computer? Teach you a key to lock the computer method, so that other people have nowhere to start.
Steps/Methods
right mouse button on desktop space "New--Shortcut"
Type the rundll32.exe user32.dll lockworkstation directive in the location where you type the item, click Next
Type the name of the shortcut, and I'll name it "one-lock Computer" and click the Finish button to create a shortcut
Right-click Property on the icon for the "one-lock Computer" shortcut
Switch to the Shortcuts tab, and in the shortcut key box below, type the key you want to set (for example, F1)
However, there is also a "Turn off Computer" button in the Lock computer interface, which we need to remove.
Click Start-Run, enter "Gpedit.msc" in the Open box, and call out the Group Policy Editor Interface
Show in turn
On the branch "Computer Configuration--windows Settings--Security settings-Local policy-security options"
In the right window, double-click the shutdown: Allow shutdown before landing option
Click the Local Security Settings tab, select the disabled item, and then click OK button to save the changes