Unpinning Items from Task bar

Does anyone know of a Script that I can run as at Logon or whatever that will unpin the following Items from the Task bar:
Internet Explorer
File explorer
Media player.
I have googled or in Microsoft's case Binged till my fingers hurt. 

I found it,  there was a script on here that did what I wanted:
'Credit goes to Eric G. for writing this script.
'More info at http://frontslash.wordpress.com/2010/03/01/removing-internet-explorer-and-windows-media-player-from-taskbar/#comment-178
Option Explicit
Const CSIDL_COMMON_PROGRAMS = &H17
Const CSIDL_PROGRAMS = &H2
Const CSIDL_STARTMENU = &HB
Dim objShell, objFSO
Dim objCurrentUserStartFolder
Dim strCurrentUserStartFolderPath
Dim objAllUsersProgramsFolder
Dim strAllUsersProgramsPath
Dim objFolder
Dim objFolderItem
Dim colVerbs
Dim objVerb
Set objShell = CreateObject("Shell.Application")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objCurrentUserStartFolder = objShell.NameSpace (CSIDL_STARTMENU)
strCurrentUserStartFolderPath = objCurrentUserStartFolder.Self.Path
Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS)
strAllUsersProgramsPath = objAllUsersProgramsFolder.Self.Path
'Internet Explorer
If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Internet Explorer.lnk") Then
Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs")
Set objFolderItem = objFolder.ParseName("Internet Explorer.lnk")
Set colVerbs = objFolderItem.Verbs
For Each objVerb in colVerbs
If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
Next
End If
'Windows Explorer
If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Accessories\Windows Explorer.lnk") Then
Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs\Accessories")
Set objFolderItem = objFolder.ParseName("Windows Explorer.lnk")
Set colVerbs = objFolderItem.Verbs
For Each objVerb in colVerbs
If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
Next
End If
'Windows Media Player
If objFSO.FileExists(strAllUsersProgramsPath & "\Windows Media Player.lnk") Then
Set objFolder = objShell.Namespace(strAllUsersProgramsPath)
Set objFolderItem = objFolder.ParseName("Windows Media Player.lnk")
Set colVerbs = objFolderItem.Verbs
For Each objVerb in colVerbs
If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
Next
End If

Similar Messages

  • Firefox 4 is not appearing in Task bar or some times it is Disappearing from task bar when i am minimising the window. so, i had to go to Task manager and find the icon.Its becoming big messy if tabs are not found , to switch programmes.

    firefox icon is missing from "Task bar"when i am minimising the window

    I am unwilling to attempt navigation away from these sites. The pop-ups that occur on the attempt to leave a site or to close the browser are exit traps offering incentive to stay.
    Once upon a time, when the internet was less dangerous, I would be willing to close the exit pop-ups. Now, after twice being infected with malware trying to close the pop-ups, I now force close whichever browser I am using.
    Recently, I clicked on the red X to close one pop-up, and it installed a trojan that I had to pay to be removed. When I clicked on 'Leave' in another exit pop, it didn't exit and it turned out I was giving permission to run a script file. Now that criminals have learned these exit pop-ups can be used to force a click action, the sites using them have become dangerous.
    If I force the browser to close using Task manager, Please tell me how to stop FireFox from sending me directly back to the same site because it mistakenly believes it crashed when it did not. I forced it to close because I was on a site that had taken control of my browser and was not allowing me to leave the site.
    No other browser sends me back to the potentially dangerous sites. I prefer Firefox, but the new version must have a setting that allows me to get safely away from a problem site?

  • Bridge will not launch from task bar or from application.  No response at all

    bridge will not launch from task bar or from application.  No response at all
    It was installed from the cloud 2 days ago, it is up to date as is Photoshop also the CC cloud version up to date
    it was working yesterday
    Photoshop opened with no problem.
    Get no response at all...nuttin

    In the PSE 12 folder, double click on the Setup.exe
    If you get this, just click on Ignore

  • Items on task bar have a strange problem.

    As you can see in the following picture, the items on task bar (especially the windows) are not touching the bottom. I mean if I click the area below the blue underline, it won't open the window and is just like clicking on an empty area on the task bar.
    I am finding this very annoying since it forces you pay attention to where you are clicking. My task bar settings is set to show small icons and I just updated to build 10061. Is there a solution, like registry edit that will solve this issue.
    - W.H.

    Some folks like the Taskbar to be smaller and thus less intrusive. The problem is not the choice of small buttons, but the fact that the overly large Taskbar no longer shrinks to fit them.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

  • After updating waterfox 12.0 to 15.0, but while launching from task bar its giving error not compatable version 15.0 min/max version 12.0

    after updating waterfox 12.0 to 15.0, and i opend the app and pin it to the task bar (windows 7 64bit enterprise edition) but while launching from task bar its giving error not compatable version 15.0 min version 12.0 ,max version 12.0

    Such an error is caused by some files that weren't updated successfully, so you are left with a mixture of files from different Firefox versions.<br />
    There is usually some security software involved that protects .ini files against modification (update).
    You will still have to do a clean reinstall and delete the Firefox program folder before reinstalling a new copy of Firefox.
    *C:\Program Files (x86)\Mozilla Firefox\

  • How do I delete items from menu bar  that are not part of the OS

    How do I delete items from menu bar  that are not part of the OS

    Perhaps you could be more specific, as it is a little difficult to answer your question without any details.  I can give you some general ideas though.
    On my machine there are a few applications that have installed items into the menu bar - I'm assuming you are talking about the icons on the right hand side of the top bar. To remove those items, I would generally need to uninstall the program that created them. To do this varies a little from application to application.
    Also, sometimes an application will have preferences that allow you choose if you want to display the item in the menu bar.
    So, my general advice would be that you need to identify the application that placed the item there, and remove it from your computer.  If there is an uninstall program for that application, I would run that in the first instance.
    If you don't actually wish to uninstall the application, you may need to click on the item or run the application and see if there is a setting to not show the menu bar item.
    Hope that helps.
    Ivan

  • How to remove an item from side bar?

    Can anyone teach me how to remove following item  from side bar:    Thank you!

    Niel thank you very much for you help.

  • After installing iTunes 10.4.0.80 "file" "edit" etc items from menu bar at top right corner disappeared -when cursor is put in that spot a darker rectangle appears - similarly tabs for syncing iPhone are invisible

    After installing iTunes 10.4.0.80 "file" "edit" etc items from menu bar at top right corner disappeared -when cursor is put in that spot a darker rectangle appears - similarly tabs for syncing iPhone are invisible- and similarly small ovals appear when cursor is placed where tabs should be.

    Very many thanks to you, Putaro!  Your answer provided the solution. It was a buggy plug-in that turned out to be the culprit.
    You're off the hook, Apple, and my apologies for stating that you let a dog run loose. You skated by this time, Apple. But I'm watching you.
    But again, Putaro's reference to the plugins I had installed over the years turned out to illuminate the problem. I have several plugins in my iTunes plugins folder, pretty much all designed to add more visualizer functionality. I removed all of them, and ALL of the problems I noted in my post went away, with full iTunes functionality restored.
    I began adding the plugins back to hopefully single out the culprit. Among the ones I had been using included fielder, G-Force, Timestrech, volcanokit, QuartzComposer, and Jax. I hadn't used any of them in a while - probably at least a verison or more back in iTunes updates, but iTunes continued to work with all of them installed. Currently, only QuartzComposer continues to work in iTunes 10.4. The rest no longer even show up as visualizer opitons, with one exception. Jax does show up, but does not work. AND THE PRESENCE OF JAX IS WHAT KILLED MY ITUNES.
    I looked into it and went back to the developer, and it appears that they discontinued developing Jax some time ago - evidently, it was buggy and crash prone. I remember after buying it, having problems with it - having never worked to its touted potential, but I didn't pursue it, and never uninstalled it. Leaving it in there caused all iTunes functionality to cease with the iTunes 10.4 update.
    If you've got Jax installed, consider removing it before updating to iTunes 10.4.
    My iTunes is now working right as rain, thanks again to Putaro!
    -Jon

  • Unpin from Task bar AFTER program is deleted

    I have a situation where I am trying to use PowerShell to Unpin a shortcut from the task bar after the program has been deleted. The shortcut has been renamed (from the idiotic name Autodesk used to start with) and thus it is orphaned after uninstall because
    Windows doesn't manage these things gracefully. The code I am using uses the common approach of digging into the shortcut to extract the Verbs array, and then assigned the Unpin verb to $Verb and then does a $Verb.DoIt(). But of course the the target no longer
    exists, so there is no Verbs object to dig a Verb out of. 
    I have found the various related posts, and there are issues
    1: Deleting the reg key and losing all pinned items is a no go. I am removing one piece of software, and I want to remove that shortcut and no others.
    2: I know I can do this manually, but my whole goal is automation, and the fact that I CAN do it manually suggests there should be a way to do it with PowerShell.
    3: I have tried getting the Verb from the shortcut as well, but it seems like the shortcut really is just a passthrough to the Target, so no target, no Verb from the shortcut.
    4: I have also tried just deleting the shortcut file from User\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar, but that leaves an even more orphaned shortcut on the task bar, that not only doesn't have a target, it doesn't
    even have an icon, just a white "page".
    So, how does one get to whatever Verbs are being accessed when doing this manually? Is there some way to apply a generic Verb?
    Gordon

    Okay so after some digging i found a way for you to do it but the best way i have found is using the actual user rights. I tested this out as a login script that ran before the user even saw their desktop.
    The task bar has a registry key that has to be cleared and when explorer is started the key gets created based on the items listed in the directory the shortcuts are stored. If you have any issues let me know.
    #Remove the chached settings in the registry. This will comeback once explorer is restarted
    get-item -path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband -ErrorAction SilentlyContinue |
    remove-itemproperty -name Favorites, FavoritesRemovedChanges, FavoritesChanges, FavoritesResolve, FavoritesVersion -ErrorAction SilentlyContinue |
    Out-Null
    #Remove ShortCut From Current User:
    Remove-Item -Path "C:\Users\$($Env:UserName)\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Pandora.lnk" -Force -ErrorAction SilentlyContinue | Out-Null
    #Restart Explorer
    Stop-Process -Name "explorer" -Force | Out-Null
    #once explorer stops it should restart itself

  • Bad icon in Applications Folder -- Good item on task bar

    I installed Firefox. Dragged Firefox logo to applications folder, but what is displayed is a different logo, with a white circle, and a slash through the circle (like the red slashed circle over a car to symbolize "no parking" on a street sign). When I dragged that logo to the task bar, the correct Firefox logo appears on the task bar, but in my applications folder, the strange logo is still there. Not sure if this means that there is a problem with Install -- no error messages were displayed during install.

    See [[/questions/883573]]
    * Delete the Firefox icon from the dock.
    * Create a new icon by dragging the Firefox application to the dock.

  • Cannot open PE 10 from task bar

    When I try to open Photoshop Elements 10 from the task bar nothing happens. I have to go to the file location and open it from there. Also, when I try to uninstall the program I'm told to close the Welcome Screen. Problem is, the Welcome Screen is not open.

      The two applications are obviously not properly integrated. You may need to raise a support case.
    https://www.adobe.com/support/contact/
     

  • Download Bash script running from Task-bar folder

    Hi, Not sure why but when Im trying to open my Downloads file from the task bar its openning up on my desktop as "Downloads-Bash script! how do i stop this please. Its the same if I open from Finder.
    Thank you all in anticipation of a resolve.

    Enter the following command in a Terminal window by copying or dragging (don’t type):
    xattr -c ~/Downloads
    Press return. You can then quit Terminal. Try the action again. If the same thing happens, relaunch the Finder by selecting
     ▹ Force Quit ▹ Finder
    and pressing return or clicking Relaunch.

  • Firefox 8.0 occasionally disappears from task bar when minimized but keeps running

    Running Firefox 8.0 on Windows XP, have 12 tabs open. Occasionally, when I minimize Firefox, it disappears from the task bar. I know that Firefox is still running because one of the open tabs is a radio station stream on Silverlight. The only way to get Firefox back is to click a link in an email then Firefox will open in a new tab (it is my default browser)

    I am guessing it is because you minimise Firefox to the Windows Xp task bar but have ot either locked that or set it to be on top so it may disappear from view.
    When the task bar is visible left click any space area on the taskbar the popup will have options including
    * '''''lock task bar''''' if you tick that the task bar stays the same size
    * '''''properties''''' if you click on that you get other options for customising the task bar
    * also see http://en.wikipedia.org/wiki/Taskbar

  • Since replacing hard drive, "restore previous session" button doesn't work, can only do it through history tab. Also will not start up from task bar icon.

    Hi, been using Firefox for some years, had to replace hard drive recently and re loaded Firefox. Since then, the restore previous session button doesn't work, but I can do it from the History tab. Also Firefox itself won't start from the task bar or desktop, only the start menu.
    Using Windows XP

    This function may not be available for mobile yet. You can put your suggestions to the [[Suggestion Box]]. Thanks!

  • Satellite A - Battery/Power Indicator Missing from Task Bar

    My battery/power indicator is missing from the task bar. When I attempt to turn it on, it's grayed out and I don't have the option to select it. I've checked the hidden icons functions, etc. When I searched on google, there were several fixes - but all are way out of my area of expertise.
    Please help!

    Hi
    Maybe you have installed an software which affected this Windows option.
    It could be also a damage registry entry
    Maybe you could clean the OS using CCleaner and repair the registry
    Im not quite sure if it will help you but its worth a try

Maybe you are looking for

  • Mail doesn't open under my user

    Mail opens with an empty screen. In order to see my inbox I need to goto Mailbox tab and use GoTo inbox. This happens on my user account and not the other user account. I've deleted com.apple.mail.plist but doesn't make a difference. Any suggestions

  • Double posting of payment

    hi, i badly need help. where should i start looking on the error of double posting of payment? after the reconciliation with our book balance for the month of december, it was found out that there appeared a floating reconciling item which turned to

  • Uncheck a Checkbox when Select List Clicked

    version 4.0.2.00.06 Hello, Jari helped me with a javascript function to select all options in a multi-select list when a checkbox is checked by the user. A bug was reported that after clicking the checkbox to select all the options in the list, if th

  • Query execution failed for dataset

    I have a problem in SSRS with MDX. Problem Statement: Query execution failed for dataset 'ds_ex' on Production server. Not able to reproduce this error in Dev machine. Problem Desc: When I select few values from drop down list it is throwing this err

  • Substitution For Region, Button and Tab

    We are building a general security table with groups of users(LDAP, Banner etc.) and what they can access in APEX. The table will be accessed from a custom function in Authorization schemes in any application or workspace in order to control security