Trying to find a way to script making these icons on the desktop.


  1. Posts : 13
    win7 pro x64, win7 ultimate x64 win8.1 x64,
       #1

    Trying to find a way to script making these icons on the desktop.


    hello all,

    For: Windows 7 professional x64

    My boss wants me to find a way to add these specfic icons to the desktop (see pic) with a script. I know how to make shortcuts with command line with mklink but these are not .lnk files that he wants. the pic shows how we do this manually when I left click on say computer it has different options than a shortcut does by clicking properties it takes you to computer properties and not the icons properties.

    if anyone knows how this can be done with a .bat, .vbs, or a .reg file that would be awesome. I prefer these.
    Attached Thumbnails Attached Thumbnails Trying to find a way to script making these icons on the desktop.-desktoppic.png  
    Last edited by shanew919; 26 Apr 2015 at 12:14.
      My Computer


  2. Posts : 20,583
    Win-7-Pro64bit 7-H-Prem-64bit
       #2

    Hi and welcome to SevenForums,
    That's because those aren't shortcuts as far as I know :/
    It's not the greatest place to have non-shortcuts because the desktop can easily be corrupted via virus's/ malware/....

    I suppose the work around is to install programs to your desktop then they won't be shortcuts any more
    I don't know if they will be listed on the page you show but they definitely won't have the shortcut arrow head on them,
    They will however show a security shield
    Script wise possibly someone will have that for you later :/
    Cheers.
      My Computer


  3. Posts : 13
    win7 pro x64, win7 ultimate x64 win8.1 x64,
    Thread Starter
       #3

    Thanks Thrashzone
    The specific icons that I need are as the pic shows.. not any other programs. I'm trying to get them on the desktop without having to do it manually... the only other alterative I know of would be to just make shortcuts to these locations through the command line with mklink.
      My Computer


  4. Posts : 2,573
    Win7 Ultimate X64
       #4

    A reg script would seem the obvious way to alter the specific value to show or hide the individual icons but I don't think it would be possible as the reg entry to do what you want is located within the HK user/current user tree so the string would be different between machines unless all machines are deployed images using exactly the same settings ie users etc
    Not sure how you would do it with a bat or vbs unless someone else has an idea ?
      My Computer


  5. Posts : 13
    win7 pro x64, win7 ultimate x64 win8.1 x64,
    Thread Starter
       #5

    yes, the reg file should apply the icons to either the current user or if you can do it to all users of the machine then I could build an image and use the reg file to make this apply the icons.
      My Computer


  6. Posts : 13
    win7 pro x64, win7 ultimate x64 win8.1 x64,
    Thread Starter
       #6

    I figured it out by doing a little digging on google...I found the setting location in the registry and exported the setting to a reg file that can be scripted.

    here is the code of my reg file if anyone eles wants it just copy paste into a notepad and save as a .reg file.
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
    "{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:00000000
    "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
    "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}"=dword:00000000
      My Computer


  7. Posts : 20,583
    Win-7-Pro64bit 7-H-Prem-64bit
       #7

    Cheers for sharing your solution :)

    Not sure what would happen if one or all got accidently deleted :/
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:51.
Find Us