Windows 10: Make windows key run a shortcut?

Discus and support Make windows key run a shortcut? in Windows 10 Support to solve the problem; I hate the windows key. How can I remap it to run a program instead? I want it to run a "show desktop" shortcut I got. 36945 Discussion in 'Windows 10 Support' started by kenw232, Jan 9, 2016.

  1. kenw232 Win User

    Make windows key run a shortcut?


    I hate the windows key. How can I remap it to run a program instead? I want it to run a "show desktop" shortcut I got.

    :)
     
    kenw232, Jan 9, 2016
    #1
  2. a-run Win User

    Me tile in my lumia 920 doesnot change its picture

    Me tile in my Lumia 920 doesn't change its picture even i change my fb pic...its showing my old pic...can u suggest a solution??
     
    a-run, Jan 9, 2016
    #2
  3. Tryx3 Win User
    Make Windows 10 Task scheduler run a batch file minimised & with a specific icon

    Technical Level : Intermediate

    Summary

    I have a batch file that I run minimised & with the icon I have chosen.
    I am happy with the way it runs as I do not need to see the Command window every time and having my chosen icon on the TaskBar shows me at a glance what is running.


    I also want to run this batch file from Task scheduler in the same way - minimised & with my chosen icon. Windows Task scheduler does not want to cooperate; it opens a command window and the TaskBar icon that appears
    is the default Cmd icon.


    However, Windows Task scheduler can be persuaded to cooperate by creating intermediate files that initiate the desired batch file. The method shown can be used for any batch file, vbs file or other script file.

    This Wiki article assumes sufficient general skills with batch files & Task scheduler so that it can focus on achieving a minimised window & a specific icon.

    This Wiki article is for Windows 10 users. The methods for Windows 7 & Windows 10 differ. Windows 7 users should refer to the companion article -
    Make Windows 7 Task scheduler
    run a batch file minimised & with a specific icon.


    Denis

    Details

    1
    Security & file locations

    1.1 All my batch files, vbs files & other script files are saved in subfolders of C:\Tools, a folder that has particular permissions set up to protect its contents against undesirable access such as malware infiltration.
    Setting up this protected folder can be done very quickly and easily and it does not affect running the files.

    1.2 My C:\Tools folder forces Admin prompts for all changes [additions, amendments & deletions].
    I do not amend my batch files, vbs files & other script files very often so I do not mind the inconvenience of forcing Admin prompts on
    myself.

    1.3 The procedure for setting up C:\Tools is in the Annex.

    1.4 I have subfolders for each task or group of tasks so I don’t get confused about which file is part of which procedure; I have, for example, C:\Tools\Backup, C:\Tools\PhoneSync, C:\Tools\PVR.

    1.5 I also have a corresponding group of subfolders within

    C:\Users\MickyMor\Documents\ToolsDevn

    where I do all the drafting & amendments. Copying updated versions to C:\Tools becomes, in effect, the act of publication.

    2
    Write the batch file that will do the required job - ThisBatch.bat

    2.1 Write it in a convenient drafting folder such as

    C:\Users\MickyMor\Documents\ToolsDevn\ThisBatch

    2.2 Test ThisBatch.bat on its own now so that its function can be relied upon when testing the whole job.

    2.3 Create the folder C:\Tools\ThisBatch and copy ThisBatch.bat into it.
    Give Admin permission when challenged.

    3
    Create a batch file shortcut - ThisBatch.lnk

    3.1 In C:\Tools\ThisBatch, right-click on ThisBatch.bat and select
    Create shortcut. Accept the offer to create the shortcut on your desktop then move it into your drafting folder.

    3.2 Tidy up the name so it appears as ThisBatch.
    It is actually called, in full, ThisBatch.lnk but the file extension is deliberately hidden by the system.

    3.3 Right-click on ThisBatch.lnk & select Properties.

    3.4 Click on the Run entry and select Minimised then click on the
    Apply button to save the change. This particular setting prepares the shortcut for independent use but is not used here - it is overridden by a parameter in section 4.

    3.5 Click on the Change icon… button.
    You will see a warning that ThisBatch.bat contains no icons. Accept the warning & the
    Change icon dialog then appears.

    3.6 A gallery of icons appears from which you can select one that is in some way indicative of the job that ThisBatch.bat will be doing.

    3.7 Select from any of the available icons, click on OK then click on the
    Apply button to save the change.

    3.8 If you cannot find an appropriate icon then you can open other icon files to look there.
    In the Change icon dialog’s Look for icons in this file: field, type in the path to other icon sources then press your keyboard’s
    Enter/Return key or click on the Browse button to reach them.
    Icon sources include

    - %SystemRoot%\system32\SHELL32.dll {this is the default shown when you first open the
    Change icon dialog}

    - %SystemRoot%\system32\imageres.dll

    - %systemroot%\system32\moricons.dll

    - C:\Windows\explorer.exe and other exe files in the Windows folder

    - Application exe files in C:\Program Files and C:\Program Files (x86)

    - Individual .ico files that applications have created

    - Individual .ico files that you have created

    - Individual .ico files that you have downloaded

    3.9 Always scan any downloaded icon with your antimalware application.
    Then right-click on the icon, select Properties and look near the bottom of the dialog for an entry
    Security: This file came from another computer and might be blocked to help protect this computer.
    Now that you have scanned the icon with your antimalware application, you can click in the checkbox to
    Unblock it. Merely as an example, Developpers Iconset (105 icons)
    Sekkyumu
    contains several freeware icons for download.

    3.10 It can be worth taking some time to select an icon because, in operation, the icon will appear in the TaskBar as your only indicator of what is running.

    3.11 If your batch file requires arguments when initiated from Task scheduler then I have found putting them into the shortcut is the simplest approach.
    Add the arguments to the end of the shortcut’s Target field.

    3.12 Test ThisBatch.lnk now so that its behaviour can be relied upon when testing the whole job.

    3.13 Copy ThisBatch.lnk into C:\Tools\ThisBatch.
    Give Admin permission when challenged.

    4
    Write an initiating vbs file - StartThisBatch.vbs

    4.1 Write a vbs file that runs ThisBatch.lnk rather than ThisBatch.bat itself.

    Set WshShell = CreateObject("WScript.Shell")

    WshShell.Run chr(34) & "C:\Tools\ThisBatch\ThisBatch.lnk" & Chr(34), 7

    Set WshShell = Nothing

    4.2 The trailing argument 7 runs ThisBatch.lnk minimised, overriding the shortcut’s own properties [see para 3.4 above].

    4.3 I cannot remember why I added the last line Set WshShell = Nothing [it was added quite some time ago].
    I think I found some advice that it was a useful precaution to take in case other vbs procedures were to be used later on in the same Windows session but I am not sure at all.

    4.4 Test StartThisBatch.vbs now so that its behaviour can be relied upon when testing the whole job.

    4.5 Copy StartBatch.vbs to C:\Tools\ThisBatch.
    Give Admin permission when challenged.

    5
    Set up a TS Task to run StartBatch.vbs

    5.1 Create a Task in Task Scheduler.

    5.2 Set up its Properties, Actions tab entry:-

    Action: Start a program

    Program/script: c:\windows\system32\wscript.exe

    Argument: "C:\Tools\ThisBatch\StartThisBatch.vbs"

    5.3 Set whatever other Properties are desired, such as its schedule.

    6
    Test the whole job

    6.1 Right-click on the task in Task scheduler and select
    Run
    .

    6.2 ThisBatch.bat’s chosen icon will appear minimised in the TaskBar while it runs.
    Clicking on it will open its window.

    6.3 A backup of all files can now usefully be made.
    The TS task itself can be backed up by exporting it [it will be in xml format and it can be edited in Notepad].

    Acknowledgements: Ramesh Srinivasan

    Annex Use a protected folder for batch files, vbs files & other script files

    A1 Why bother

    A1.1 I have put the discussions, explanations, ifs, buts & maybes in this section so that the procedure in A2 can be straightforward.
    You do not have to read this section. You can skip straight to A2.

    A1.2 Malware tries to infiltrate computers.
    Windows’ protection measures include limiting access permissions for Windows folders & for the folders in which applications are installed such as C:\Program files.

    A1.3 If a user or an application, for example, tries to copy anything into C:\Program Files\VideoLAN\VLC or to change its existing content then an Admin prompt forces elevated permission to be granted [strictly speaking, I should use
    the terms Elevation UI, Consent UI, Credential UI or
    Secure Desktop mode
    instead of the commonly-used term Admin prompt].
    Unlike granting access permission to folders within C:\Users\MickyMor\Documents, which has a permanent effect, this elevated permission only applies to the current task.
    If another task later requires access to anything within C:\Program Files then a new Admin prompt forces Admin permission to be sought once again.

    A1.4 The requirement for Admin approval every time achieves a significant level of protection against malware, particularly if the user account control [UAC] setting is left in its default state or a higher level so that Admin prompts
    are generated for software installations & other overall system changes against the backdrop of the dimmed screen [This condition is when the Admin prompt is referred to as being in Secure Desktop mode].
    Microsoft believe that, with UAC set this way, malware cannot get onto a system then run without a user’s express
    consent
    .

    A1.5 However, malware can attempt to exploit resources that are common to both the Standard
    user’s environment & the environment of an operation for which Admin permission has been granted
    .
    For example, an executable that is held in a folder such as C:\Users\MickyMor\Documents\MyOwnBatchFiles is not given the system protection afforded to executables within C:\Program files or C:\Program files (x86).
    Therefore, even if an Admin prompt is correctly generated and correctly identifies the executable concerned, that executable itself might have been hijacked by malware unless the executable is signed & that signature is checked.

    A1.6 In other words, malware can attempt to infiltrate our own batch files, vbs files & other script files as a stepping stone to infiltrating the entire computer because we do not apply recognised signatures to these files.

    A1.7 An effective solution is to extend the system protection afforded to executables within C:\Program files or C:\Program files (x86) to the folders within which batch files, vbs files & other script files are stored.

    A1.8 This can be done very quickly and easily and it does not affect running the files.
    The user can create a protected folder and put all batch files, vbs files & other script files within it.
    This is what I do and I recommend that everybody does the same.

    A2 Set up the protected folder

    A2.1 In any user account, open File explorer then create folder
    C:\Tools.

    A2.2 Right-click on this new folder, select Properties,
    Security, Advanced to open the Advanced security settings for Tools
    dialog.

    A2.3 Click on the Disable inheritance button near the bottom of the dialog.
    In the confirmation dialog that appears, click on Convert inherited permissions into explicit permissions on this object.

    A2.4 In the list of user accounts & user account groups, select
    Administrators [Administrators in the plural not
    Administrator in the singular] then click on Edit.
    Permissions for Administrators will probably need no adjustment so this is just a check.
    Set the checkbox for Full control [which will, in turn, set all the others except
    Special permissions]. Click on OK.

    A2.5 In the list of user accounts & user account groups, select
    Authenticated users if it exists then click on Edit.
    Clear the checkboxes for Full control, Modify, Write.
    Set the checkbox for Read & execute [which will, in turn, set those for
    List folder contents, Read]. Click on OK.

    A2.6 In the list of user accounts & user account groups, select
    Users then click on Edit. Permissions for Users will probably need no adjustment so this is just a check.
    Clear the checkboxes for Full control, Modify, Write.
    Set the checkbox for Read & execute [which will, in turn, set those for
    List folder contents, Read]. Click on OK.

    A2.7 Back in the Advanced security settings for Tools
    dialog, click on the Apply button in the bottom right corner.

    A2.8 At the top of the dialog, the owner is shown as the current user, click on
    Change then provide Admin permission if prompted. In the text entry box, enter the word
    Administrators [Administrators in the plural not
    Administrator in the singular; do not accidentally enter a space after the word because there is no such user group], click on
    Check names, OK.

    A2.9 Set the checkbox for Replace owner on subcontainers and objects then click on
    OK. Then click on OK in the folder’s Properties dialog in order to return to
    File explorer.

    A2.10 This is what the Advanced security settings for Tools
    dialog will look like when you have finished:-


    Make windows key run a shortcut? [​IMG]


    A3 Test the new folder permissions

    A3.1 Open C:\Tools then right-click over a blank area and hover over
    New. Only a new folder is permitted not a new file.

    A3.2 Open C:\Tools then attempt to create a subfolder within it.
    You will be challenged for Admin permission and the subfolder will not be created until you give it.

    A3.3 Try to copy an existing folder or file into C:\Tools or its subfolder.
    You will be challenged for Admin permission and the folder or file will not be pasted in until you give it.

    A4 Use the protected folder

    A4.1 Copy all your existing batch files, vbs files & other script files into subfolders of C:\Tools.
    Copying is better than moving because moving can create chaotic amalgamations of security permissions.

    A4.2 Update shortcuts & Task scheduler entries to refer to the new locations.

    A4.3 Consider creating a development folder ToolsDevn somewhere convenient so that you have a home for drafting new versions & for saving archived versions.
     
    Tryx3, Jan 9, 2016
    #3
  4. D3LL Win User

    Make windows key run a shortcut?

Thema:

Make windows key run a shortcut?

Loading...
  1. Make windows key run a shortcut? - Similar Threads - key run shortcut

  2. Windows Key Shortcuts Running Without Pressing Windows Key!

    in Windows 10 Gaming
    Windows Key Shortcuts Running Without Pressing Windows Key!: Hi all, I've been having this issue where, when typing anywhere MS Word, URL bar, Outlook, Etc., the Windows key shortcuts start to run when I press the corresponding hot-key. For example: I will click the URL bar in Chrome to search "Recipe ..." and the "Run" shortcut,...
  3. Windows Key Shortcuts Running Without Pressing Windows Key!

    in Windows 10 Software and Apps
    Windows Key Shortcuts Running Without Pressing Windows Key!: Hi all, I've been having this issue where, when typing anywhere MS Word, URL bar, Outlook, Etc., the Windows key shortcuts start to run when I press the corresponding hot-key. For example: I will click the URL bar in Chrome to search "Recipe ..." and the "Run" shortcut,...
  4. make a shortcut to Run as a different user

    in AntiVirus, Firewalls and System Security
    make a shortcut to Run as a different user: The company I work for has a group policy setting that makes it so that "run as administrator" doesn't work when I'm logged in as a normal user. I don't get prompted to enter a username and password for my "T2" admin account.However, I can shift-right-click on something and...
  5. Can't add a shortcut key to run screensaver

    in Windows 10 Customization
    Can't add a shortcut key to run screensaver: I want to assign a short cut key to PhotoScreensaver.scr. I have created a shortcut icon on Desktop. When I open Properties, it shows "Shortcut key: None" but it doesn't allow me to change it. When I click Advanced, "Run as administrator" is grayed out. I log on as...
  6. Windows keys and shortcuts

    in Windows 10 BSOD Crashes and Debugging
    Windows keys and shortcuts: I got a problem and it's that when I do a Windows + something command the windows shortcut key gets stuck and every key I press launches the Win + that key shortcut and the windows keys is functional, if I reset the PC it works normally again. The advanced startup functions...
  7. Windows Key Shortcuts

    in Windows 10 Drivers and Hardware
    Windows Key Shortcuts: Using my desktop for games. Sometimes, out of nowhere, the windows key shortcuts suddenly does not require the Windows Key to actually be pressed down to register so, "Win + P" would only require "P". It essentially feels like the entire keyboard is rebinded and I'm not sure...
  8. Making shortcuts with Windows 10

    in Windows 10 Network and Sharing
    Making shortcuts with Windows 10: Is it possible to make desktop shortcuts for websites with Microsoft Edge? I can make them with Internet Explorer but they don't seem to work with Edge. https://answers.microsoft.com/en-us/windows/forum/all/making-shortcuts-with-windows-10/0ce60b30-e290-466b-8740-9691396ff1d3
  9. Make a Shortcut Always Run as a Administrator

    in Windows 10 Customization
    Make a Shortcut Always Run as a Administrator: How do you make a shortcut (on my desktop) always Run as a Administrator ? Thanks for any help with this https://answers.microsoft.com/en-us/windows/forum/windows_10-start-win_desk/make-a-shortcut-always-run-as-a-administrator/c09bf487-952b-4a51-80ed-732ac96ea3b2
  10. Make a Windows Update shortcut?

    in Windows 10 Updates and Activation
    Make a Windows Update shortcut?: I'd like to have an icon or shortcut to Windows Update, preferably in the Start Window. Currently I have to type "Update" in search to get there. 3 steps, very clunky. In Windows 7 we had a link in the Start > Programs Menu. Something like that. 40207