How to Pin 配置管理器 软件中心 to Taskbar with GPO on 视窗 10 和 Windows服务器.
Pin Software Center with GPO
1. 复制 软件中心 link from C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft System Center\Configuration Manager to Desktop and rename to SoftwareCenter;
2. Copy it to \\<你的 领域 姓名>\SYSVOL\<你的 领域 姓名>\scripts;
3. 创造 a *.xml 文件 (就我而言 pinup.xml) and paste the next script:
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<CustomTaskbarLayoutCollection>
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk"/>
<taskbar:DesktopApp DesktopApplicationLinkPath="%appdata%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk"/>
<taskbar:DesktopApp DesktopApplicationLinkPath="\\enterinit.com\sysvol\enterinit.com\scripts\SoftwareCenter.lnk"/>
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>
4. In this script we pin to the taskbar: Internet Explorer, 文件浏览器, 和 SCCM 软件中心. (do not pin File Explorer from %windir%, it’s work with bugs).
5. To remove the default pinned items, you must replace
<CustomTaskbarLayoutCollection>
和
<CustomTaskbarLayoutCollection PinListPlacement="Replace">
6. 复制 pinup.xml 到 \\<你的 领域 姓名>\SYSVOL\<你的 领域 姓名>\scripts;
7. 开始 小组政策管理;
8. 鼠标右键 click on the GPO object and click 编辑;
9. 导航至 Computer Configuration\Policies\Administrative Templates\Start menu and Taskbar;
10. 鼠标右键 点击 Start Layout 然后单击 编辑;
11. Select the option Enabled and enter the path to our *.xml file in Start Layout File; 点击 好的;
12. Close All 视窗. Reboot your target machine;
13. Result!
FAQ
What happens if a user deletes an item we pinned to the Taskbar using the .xml file and Group Policy?
Users can delete an item we pinned to the Taskbar. 然而, the icon will be added back the next time that we modify the .xml file. If you don’t modify the .xml file, the user’s configuration won’t change.
What if I add a shortcut that the user has already pinned to the Taskbar?
Nothing happens. 视窗 won’t add a second icon.
What if we pin an item the end-user has already pinned to the Taskbar, and then we remove the icon through our .xml file?
The icon won’t be removed.
What if we remove a pinned app in the.xml file that we deployed with Group Policy?
The pinned item will be removed from the Taskbar as soon the Group Policy is applied when the user logs on again.
What if a user changes the order of the pinned items in the Taskbar?
The user’s order configuration will be maintained when we add or remove items.
What happens to the Taskbar if the computer is no longer targeted by a Group Policy?
The Taskbar will keep the configuration that we previously deployed via Group Policy.
What happens if I add Taskbar shortcuts to a .xml that is applied to 视窗 10 1511 machines?
The older version of 视窗 10 can’t read this .xml file and will ignore it altogether.
I tried your script – it is not working. I don’t see software center in the taskbar.
I did modify the script and changed the network path point to sysvol within my domain.
Can you re-share the script by email or post at google drive or github.
谢谢
Ram
对不起, now code is worked, some plugin for code highlighting broke all logic. Now must work, check out and write the reply.
I tried again with your updated script – yet none of the icons show up in task bar. Not sure why it is not working. I even ran group policy result to find out if there is any error to the GPO. No errors found – yet the icons are not in the task bar. Will research more.
Thanks for fixing the script.
Make simple check:
1. Your windows build is minimum 1607
2. You update your gpo admx files with (最低限度) 1607 admx files
3. You copy to sysvol software center file and create xml
4. Config gpo policy to use your xml
5. 完成后 – reboot your PC couple times
6. Also there some interesting thing with xml, if you need to reupdate pinned items you must make some changes in xml and save it (delete and past some symbol, 例如)
1.Windows build is v1709
2. The admx files are 1703 creators version
3. Done
4. Done
5. Done
6. Did change the domain name and the share location within the xml file.
Will try again tomorrow. Will keep you posted.
Ram