Assigning "Lock Computer" to "My Favorites" buttons on Microsoft Natural Ergonomic Keyboard
Solution 1:
Use this command:
rundll32.exe user32.dll, LockWorkStation
That should do it.
Use this command:
rundll32.exe user32.dll, LockWorkStation
That should do it.