Windows 10 – Batch – Add Pinned Items into Default User Profile

email me

This is how you add pinned items into the default user profile.

Save this as script.cmd and run.

DEL /F /S /Q /A “C:\Users\Default\Roaming\AppData\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*”

:: Reference Machine Shortcts
COPY /y “C:\TaskBarItems” “C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar”

REG LOAD HKU\TempLoad “C:\Users\default\NTUSER.DAT”

REG DELETE “HKU\TempLoad\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband” /F

:: Reference Machine Reg Keys
REG IMPORT C:\TaskBarItems.reg

REG UNLOAD HKU\TaskBarItems

 

Notes

Using GP and a modified layout is a great way to manage the pinned items—for all types of user logins: New (default), current, and old profiles. Take a look here: https://docs.microsoft.com/en-us/windows/configuration/configure-windows-10-taskbar

Or here: http://eddiejackson.net/wp/?p=15446