Useful Shortcuts for Windows
  • Useful Shortcuts for Windows

    Creating Computer Lock Shortcut

    Keeping your computer unlocked while away from your desk can be risky.  You never know who might walk into the office and try to access your work.  Every time you plan to step away from your desk for more than five minutes you should always lock it.  A couple options to quick lock are through keyboard shortcuts such as Ctrl + Alt + Del or Windows + L, but there is also a way to create a shortcut icon on the desktop to lock the computer:

    Right-click anywhere on the desktop → New → Shortcut.

     

    In the Create Shortcut dialog box type “rundll32 user32.dll,LockWorkStation” in the ‘Type the location of the item:’ field → Next.

     

    Note: This shortcut example is using the lock function.  A shortcut for restart and shutdown can be made also using the following in the ‘Type the location of the item:’ field in place of “rundll32 user32.dll,LockWorkStation”

    Restart – %windir%System32shutdown.exe -r -f -t 00

    Shutdown – %windir%System32shutdown.exe -s -f -t 00

    Type “Lock PC” (or whatever name you want to name the shortcut) in the field named “Type a name for this shortcut:” → Finish.

     

    Double-click the newly created shortcut icon on the desktop to lock the PC.

     

    Creating Safely Remove USB Flash Drive Shortcut

    USB flash drives are used commonly in most office environments to move files from computer to computer or to home.  The proper way to eject the USB flash drive from the computer is to safely remove the USB hardware by going through the icon in the system tray.  A shortcut icon can also be created to safely remove the USB flash drive without going to the system tray:

    Right-click anywhere on the desktop → New → Shortcut.

     

    In the Create Shortcut dialog box type “RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

    ” in the ‘Type the location of the item:’ field → Next.

     

    Type “Remove USB” (or whatever name you want to name the shortcut) in the ‘Type a name for this shortcut:’ field → Finish.

     

    Double-click the newly created shortcut icon on the desktop to safely remove the USB flash drive (when applicable).

     

    As you can see shortcuts are easy to create and given the right command function can perform routine tasks that normally require multiple clicks.  If you perform a routine task many times a day and would benefit from shortcuts, ask your Systems Administrator how to automate a task and let them help you become more efficient!