Меню Рубрики

Pintotaskbar windows 10 with powershell

Pintotaskbar windows 10 with powershell

The following forum(s) have migrated to Microsoft Q&A: All English Windows Server forums!
Visit Microsoft Q&A to post new questions.

Answered by:

Question

Below is a little jig I am using to try to troubleshoot some code that works in Windows 7 and fails in Windows 10. I have verified that when I right click the target file in question, I do get «Pin to taskbar» as an option. However, my Write-Host of all the available verbs does NOT show that option. It’s the only one missing. My Google-Fu has failed me in tracking down any known bugs or what have you, so I am hoping someone has some insight.

Answers

Here are the locations for the taskbar icons:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

All replies

It is much easier this way:

Hmmm, and grrr. My «Google-Fu» is really «DuckDuckGo-Te» or something of late. And I forgot when you get zero results in DDG, you check Google before you admit defeat. Thanks for the heads up!

I found that via DDG. =]

Mostly because I already knew that it had been posted on connect. If I didn’t include that string I doubt I’d have found it.

jrv, it seems that approach is also broken in Windows 10. Maybe MS just wants to push us to use their silly tiles? Anyway, I guess I just log an error in Windows 10 and hope MS gets their poo together and fixes this at some point. That said, I may look to simplify my code per your comment anyway. Simpler the better, especially if i am adding OS specific errors.

I know it doesn’t work. We have known that since the first preview of W10. I was just noting that you don’t need all of that code to get a verb t execute.

There is an API call that can beused but I cannot find where I put the file.

Microsoft is now enforcing the «Don’t mess with the users desktop» rule of correct Windows management. They will likely reposition it as a GP option.

Too many programs modifying a users desktop create chaos and cause confusion.

Here is the basic NETSH command for turning on F&P

netsh advfirewall firewall set rule group=»File and Printer Sharing» new enable=Yes

NETSH can also be used to check the state of the F&P bindings.

Microsoft is now enforcing the «Don’t mess with the users desktop» rule of correct Windows management. They will likely reposition it as a GP option.

Too many programs modifying a users desktop create chaos and cause confusion.

Some things that might be wrth considering. The «Shell» is going away. All of these things are part of a very old COM based system of automating the desktop. I suspect the concept of a taskbar will soon be gone.

I was never really happy with the»Shell». It was designed to allow vendors to customize it to their needs for OEM versions of Windows and to allow deployment of custom desktops. HP seems to be the only company that has attempted this in any large way. HP consumer systems come with a very sophisticated desktop switcher and can handle an unlimited number of virtual desktops.

Note also that the desktop is being virtualized. What the look and feel of that will finally be is any bodies guess. Software as a Service! (SaaS)

Here are the locations for the taskbar icons:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

Yeah, Micrsosoft is really scaring me of late. The Quick Launch idea they took from the Mac Dock is indispensable in a production environment. I think Architect’s working with Autodesk software probably use 3-4 programs 95% of the 50 hour work week. As an IT/BIM Manager, providing those links for users, especially links for new versions each year, is one way I can help staff be more productive. Losing that to some extra click fluffery in the interest of looking like an unwanted phone OS doesn’t make me happy, or my company money. As for WaaS, I don’t know a single Architecture firm that understands the term who doesn’t consider it a good reason to stick with Windows 7 forever.

But, all that aside, I looked at the API stuff you linked to frv, and I am wondering if I missed some back door. I found this » A small set of applications are pinned by default for new installations. Other than these, only the user can pin further applications; programmatic pinning by an application is not permitted.» which gives me the sense that programmatically adding things to the task bar has been technically verboten for some time, at least for everyone who isn’t Micrsosoft. Am I missing something in the API that would allow direct modification of the registry?

Источник

Configure Windows 10 taskbar

Starting in Windows 10, version 1607, administrators can pin additional apps to the taskbar and remove default pinned apps from the taskbar by adding a section to a layout modification XML file. This method never removes user-pinned apps from the taskbar.

The only aspect of the taskbar that can currently be configured by the layout modification XML file is the layout.

You can specify different taskbar configurations based on device locale and region. There is no limit on the number of apps that you can pin. You specify apps using the Application User Model ID (AUMID) or Desktop Application Link Path (the local path to the application).

If you specify an app to be pinned that is not provisioned for the user on the computer, the pinned icon won’t appear on the taskbar.

The order of apps in the XML file dictates the order of pinned apps on the taskbar from left to right, to the right of any existing apps pinned by the user.

In operating systems configured to use a right-to-left language, the taskbar order will be reversed.

The following example shows how apps will be pinned: Windows default apps to the left (blue circle), apps pinned by the user in the center (orange triangle), and apps that you pin using the XML file to the right (green square).

Configure taskbar (general)

To configure the taskbar:

  1. Create the XML file.
    • If you are also customizing the Start layout, use Export-StartLayout to create the XML, and then add the section from the following sample to the file.
    • If you are only configuring the taskbar, use the following sample to create a layout modification XML file.
  2. Edit and save the XML file. You can use AUMID or Desktop Application Link Path to identify the apps to pin to the taskbar.
    • Add xmlns:taskbar=»http://schemas.microsoft.com/Start/2014/TaskbarLayout» to the first line of the file, before the closing >.
    • Use and AUMID to pin Universal Windows Platform apps.
    • Use and Desktop Application Link Path to pin desktop applications.
  3. Apply the layout modification XML file to devices using Group Policy or a provisioning package created in Windows Imaging and Configuration Designer (Windows ICD).

If you use a provisioning package or import-startlayout to configure the taskbar, your configuration will be reapplied each time the explorer.exe process restarts. If your configuration pins an app and the user then unpins that app, the user’s change will be overwritten the next time the configuration is applied. To apply a taskbar configuration that allows users to make changes that will persist, apply your configuration by using Group Policy.

If you use Group Policy and your configuration only contains a taskbar layout, the default Windows tile layout will be applied and cannot be changed by users. If you use Group Policy and your configuration includes taskbar and a full Start layout, users can only make changes to the taskbar. If you use Group Policy and your configuration includes taskbar and a partial Start layout, users can make changes to the taskbar and to tile groups not defined in the partial Start layout.

Tips for finding AUMID and Desktop Application Link Path

In the layout modification XML file, you will need to add entries for applications in the XML markup. In order to pin an application, you need either its AUMID or Desktop Application Link Path.

The easiest way to find this data for an application is to:

  1. Pin the application to the Start menu on a reference or testing PC.
  2. Open Windows PowerShell and run the Export-StartLayout cmdlet.
  3. Open the generated XML file.
  4. Look for an entry corresponding to the app you pinned.
  5. Look for a property labeled AppUserModelID or DesktopApplicationLinkPath .

Sample taskbar configuration XML file

Sample taskbar configuration added to Start layout XML file

Keep default apps and add your own

The section will append listed apps to the taskbar by default. The following sample keeps the default apps pinned and adds pins for Paint, Microsoft Reader, and a command prompt.

Before:

After:

Remove default apps and add your own

By adding PinListPlacement=»Replace» to , you remove all default pinned apps; only the apps that you specify will be pinned to the taskbar.

If you only want to remove some of the default pinned apps, you would use this method to remove all default pinned apps and then include the default app that you want to keep in your list of pinned apps.

Before:

After:

Remove default apps

By adding PinListPlacement=»Replace» to , you remove all default pinned apps.

Configure taskbar by country or region

The following example shows you how to configure taskbars by country or region. When the layout is applied to a computer, if there is no node with a region tag for the current region, the first node that has no specified region will be applied. When you specify one or more countries or regions in a node, the specified apps are pinned on computers configured for any of the specified countries or regions.

When the preceding example XML file is applied, the resulting taskbar for computers in the US or UK:

The resulting taskbar for computers in Germany or France:

The resulting taskbar for computers in any other country region:

Источник

Pintotaskbar windows 10 with powershell

Вопрос

Below is a little jig I am using to try to troubleshoot some code that works in Windows 7 and fails in Windows 10. I have verified that when I right click the target file in question, I do get «Pin to taskbar» as an option. However, my Write-Host of all the available verbs does NOT show that option. It’s the only one missing. My Google-Fu has failed me in tracking down any known bugs or what have you, so I am hoping someone has some insight.

Ответы

Here are the locations for the taskbar icons:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

Все ответы

It is much easier this way:

Hmmm, and grrr. My «Google-Fu» is really «DuckDuckGo-Te» or something of late. And I forgot when you get zero results in DDG, you check Google before you admit defeat. Thanks for the heads up!

I found that via DDG. =]

Mostly because I already knew that it had been posted on connect. If I didn’t include that string I doubt I’d have found it.

jrv, it seems that approach is also broken in Windows 10. Maybe MS just wants to push us to use their silly tiles? Anyway, I guess I just log an error in Windows 10 and hope MS gets their poo together and fixes this at some point. That said, I may look to simplify my code per your comment anyway. Simpler the better, especially if i am adding OS specific errors.

I know it doesn’t work. We have known that since the first preview of W10. I was just noting that you don’t need all of that code to get a verb t execute.

There is an API call that can beused but I cannot find where I put the file.

Microsoft is now enforcing the «Don’t mess with the users desktop» rule of correct Windows management. They will likely reposition it as a GP option.

Too many programs modifying a users desktop create chaos and cause confusion.

Here is the basic NETSH command for turning on F&P

netsh advfirewall firewall set rule group=»File and Printer Sharing» new enable=Yes

NETSH can also be used to check the state of the F&P bindings.

Microsoft is now enforcing the «Don’t mess with the users desktop» rule of correct Windows management. They will likely reposition it as a GP option.

Too many programs modifying a users desktop create chaos and cause confusion.

Some things that might be wrth considering. The «Shell» is going away. All of these things are part of a very old COM based system of automating the desktop. I suspect the concept of a taskbar will soon be gone.

I was never really happy with the»Shell». It was designed to allow vendors to customize it to their needs for OEM versions of Windows and to allow deployment of custom desktops. HP seems to be the only company that has attempted this in any large way. HP consumer systems come with a very sophisticated desktop switcher and can handle an unlimited number of virtual desktops.

Note also that the desktop is being virtualized. What the look and feel of that will finally be is any bodies guess. Software as a Service! (SaaS)

Here are the locations for the taskbar icons:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

Yeah, Micrsosoft is really scaring me of late. The Quick Launch idea they took from the Mac Dock is indispensable in a production environment. I think Architect’s working with Autodesk software probably use 3-4 programs 95% of the 50 hour work week. As an IT/BIM Manager, providing those links for users, especially links for new versions each year, is one way I can help staff be more productive. Losing that to some extra click fluffery in the interest of looking like an unwanted phone OS doesn’t make me happy, or my company money. As for WaaS, I don’t know a single Architecture firm that understands the term who doesn’t consider it a good reason to stick with Windows 7 forever.

But, all that aside, I looked at the API stuff you linked to frv, and I am wondering if I missed some back door. I found this » A small set of applications are pinned by default for new installations. Other than these, only the user can pin further applications; programmatic pinning by an application is not permitted.» which gives me the sense that programmatically adding things to the task bar has been technically verboten for some time, at least for everyone who isn’t Micrsosoft. Am I missing something in the API that would allow direct modification of the registry?

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Pintostartscreen windows 7 что это
  • Pinterest для windows phone
  • Pinnacle video driver 64bit windows 8
  • Pinnacle tvcenter pro для windows 7
  • Pinnacle systems studio pctv windows 7