运行效果: (reg+快捷方式打包集)
实现代码:
$TaskbarLocal="$env:APPDATAMicrosoftInternet ExplorerQuick LaunchUser PinnedTaskBar" $TargetLocal="$env:USERPROFILEDesktop" reg export HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerTaskband $TargetLocalackup.reg Compress-Archive -Path $TaskbarLocal -DestinationPath $TargetLocal askbar_backup