PinTo10v2

Very much a place-holder for now but I thought my Windows command-line tool PinTo10v2 could do with a home page…

A lot of IT admins will know that the popular VB Script that pins items to the Windows 7 Task Bar and Start Menu does not work in Windows 10.  I made PinTo10 about 18 months ago based on the Nullsoft Scriptable Installer framework which was functional but slow and heavy for a command-line tool and not really the right tool for the job at all.  Now, based on some great work by Alex Weinberger ( http://alexweinberger.com/main/pinning-network-program-taskbar-programmatically-windows-10/ ), I’ve made PinTo10v2 which has the same functionality as the original but is a fraction of the size and far more efficient. The source code isn’t very pretty as I’m no c# coder (I normally stick to basic scripting) but it works.

Give it a go, source code included…

https://www.dropbox.com/s/q4joxy231hz0klj/PinTo10v2_1.1.zip?dl=1

Stuart Pearson

 

 

Advertisements

10 thoughts on “PinTo10v2”

    1. Rob, Sadly not. This method still uses the verb method (with a little modification for it to work on Windows 10 thanks to Alex Weinberger). As the default pinning of Edge doesn’t seem to actually directly link to a .lnk or .exe that verb can’t be triggered. The best methods available at the moment seem to be importing a set of registry keys to HKCU for a basic “taskband” and restarting explorer.exe. Then you can pin whichever icons you want back. It’s not pretty but it’s probably the best solution at this point in time.

      Like

  1. Hello Stuart
    What is the reason that your (very nice) tool doesn’t work on Server OS, for example Server 2016?
    Ever since I discovered this tool we’ve been using it for our Windows 10 deployments. Now I wanted to also use it for Server 2016 but apparently it’s not supported.

    Like

    1. Hi Mike,

      Only Windows 7 and 10 are supported because those are the OS’s that have been tested and are known to work. This is why I’ve provided the source code for it.

      If you look at line 71 of Program.cs you’ll see that it exits the program if it doesn’t detect Windows 7 or 10. You should simply be able to change that line from…

      Environment.Exit(0);
      to
      actionIndex = pin ? 51201 : 51394;

      and then recompile it.

      This should work (completely untested)…
      https://www.dropbox.com/s/tewwil1axsovxa8/PinTo10v2_NoOSCheck.zip?dl=1

      Stuart

      Liked by 1 person

      1. So is the correct syntax something like this:

        PinTo10v2_NoOSCheck.exe /pintb ‘paint.net’
        -or-
        PinTo10v2_NoOSCheck /pintb ‘C:\Program Files\paint.net\paintdotnet.exe’
        -or-
        PinTo10v2_NoOSCheck /pintb ‘C:\Program Files\paint.net\paintdotnet.lnk’

        Thanks

        Like

      2. Hi,

        Either…

        PinTo10v2_NoOSCheck /pintb “C:\Program Files\paint.net\paintdotnet.exe”
        -or-
        PinTo10v2_NoOSCheck /pintb “C:\Program Files\paint.net\paintdotnet.lnk”

        … should work as long as the file exists. Full paths are needed (although I appreciate that I only put “filename” in the help file.

        Please note that the NoOSCheck might operate differently or not at all on OS’s that are not Win 7 or 10 so if something isn’t working (and you’re not using Win 7 or 10) then please try it on a “supported” operating system first.

        Stuart

        Like

  2. Stuart: I know the source is included, but could you include a license statement to clarify how your (nice) work can be used? Thanks.

    Like

    1. Feel free to link back to this site and this statement. I’m no lawyer and don’t know how open source really works but I am providing the compiled exe and source code available to everyone to use with no suggestion that this is fit for purpose or comes with any expression of support or warranty. Please use at your own risk. I have tested it and know it to work as I intended. As it is based on someone else’s source code you would have to also check that they are also happy for the code to be used.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s