Giter Club home page Giter Club logo

pttb_-_pin_to_taskbar's People

Contributors

0x546f6d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pttb_-_pin_to_taskbar's Issues

[Feature Request] Additional commands

-list, /list - To get list of currently pinned apps
-fix, /fix - To fix broken pins (remove pins in taskband REG that point to missing .lnk files)

Have you an idea to how just refresh the taskbar

Hi,

I saw here and here a way to refresh taskbar by broadcasting an windows event, but it seems to work only for Explorer\Advanced. Have you an idea to how we could refresh the taskbar without restarting explorer.exe?

I think to pin/unpin to trigger the refresh call by pttb. Do you think it could be possible to isolate only the part that resfresh the taskbar or it is not possible because pttb triggers Program verb without much control on the underlying functions?

Edit: the link provide seems to work for change made in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced but not HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband

Not working on 19044.1706

Hi, I am trying use this (was trying syspin) to pin programs to newly provisioned computers, I do not want to use a policy as I don't want the icons to be unchangeable, and just want it to be a onetime thing when a new user/computer is setup.

On my PC, which is Win10 19044.1706, I can't get it to pin exe's or lnk's.

Any ideas why?

Does not work with cyrillic alphabet

Great work. However, I can't get it to work with Cyrillic alphabet. I'm using

            Write-Host $shortcuts
            foreach ($shortcut in $shortcuts) {
                # Use pttb.exe to pin the shortcut to the taskbar
                Start-Process -FilePath $pttbPath -ArgumentList $shortcut.FullName -NoNewWindow -Wait
                Write-Host "Pinned $($shortcut.FullName) to the taskbar using pttb.exe"
            }

Works great for English filenames such as

Brave.lnk

Pinned C:\Users\Public\Desktop\Brave.lnk to the taskbar using pttb.exe

But not for Ukrainian filenames such as:

Інтернет.lnk

ERROR_FILE_NOT_FOUND: "C:\Users\Public\Desktop\"
Pinned C:\Users\Public\Desktop\Інтернет.lnk to the taskbar using pttb.exe

How to pin .bat or .cmd files

pttb.exe (and syspin.exe) will not pin .bat or .cmd files to the taskbar. But there is a way:

  1. ren FOO.cmd FOO.exe
  2. pttb.exe FOO.exe
  3. certutil -f -encodehex "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\FOO.lnk" FOO.enc 12
  4. ssr.exe -w -q 657865=636d64 006500780065=0063006d0064 FOO.enc
  5. certutil -f -decodehex FOO.enc "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\FOO.lnk"
  6. del FOO.enc
  7. ren FOO.exe FOO.cmd
  8. pttb.exe -r

Notes: 1. or may be a .bat (or other?) file. 2. FOO.exe now pinned. 3. FOO.enc is a one line text file. 4. ssr.exe is Simple Search and Replace utility, any similar will do. 657865 is the string for 'exe'; 636d64 is for 'cmd' or use 626174 for 'bat'. Be aware these are lowercase values. 5. Replaces modified .lnk file. 6. No longer needed. 7. Back to original name. 8. May not be needed.

Now clicking the pinned .cmd file will run it. Change properties/icon as needed.

crackfed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.