AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 861815
Accepted
Tim Brigham
Tim Brigham
Asked: 2017-07-13 08:53:36 +0800 CST2017-07-13 08:53:36 +0800 CST 2017-07-13 08:53:36 +0800 CST

让用户在win10中更改已部署的任务栏引脚

  • 772

我正在部署 Windows 10 并希望使用 LayoutModification.xml 来配置 taskbar。部署完美运行并进行了我的更改,但用户无法在不需要时删除这些固定项目。我该如何允许?

<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 PinListPlacement="Replace" >
      <defaultlayout:TaskbarLayout>
        <taskbar:TaskbarPinList>
          <taskbar:UWA AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
          <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
          <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\xxxxlnk" />

        </taskbar:TaskbarPinList>
      </defaultlayout:TaskbarLayout>
   </CustomTaskbarLayoutCollection>


</LayoutModificationTemplate>

编辑:

这发生在 Win10 1703 上。

我在想它可能只是一些 NTFS 权限,但是使用新的配置文件部署方法,这个 LayoutModification.xml 文件仅在创建时从默认用户复制到本地用户配置文件。在标准用户配置文件(具有标准用户权限)中,如果我在他们的 LayoutModification.xml 副本上编辑固定项目,它就会消失。这是一种解决方法,但不是真正的修复。

windows-10
  • 2 2 个回答
  • 532 Views

2 个回答

  • Voted
  1. Best Answer
    Tim Brigham
    2018-11-08T11:30:30+08:002018-11-08T11:30:30+08:00

    去年回顾了几次,得出的结论是不可能的。

    • 0
  2. PPR67
    2020-09-23T23:13:48+08:002020-09-23T23:13:48+08:00

    应用布局后尝试使用此脚本:

    $regAliases = @("HKLM", "HKCU")
    
    #Assign the start layout and force it to apply with "LockedStartLayout" at both the machine and user level
    
    foreach ($regAlias in $regAliases){
        $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
        $keyPath = $basePath + "\Explorer" 
        IF(!(Test-Path -Path $keyPath)) { 
            New-Item -Path $basePath -Name "Explorer"
        }
        Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 1
        Set-ItemProperty -Path $keyPath -Name "StartLayoutFile" -Value "C:\Windows\StartLayout.xml"
    }
    
    #Restart Explorer, open the start menu (necessary to load the new layout), and give it a few seconds to process
    
    Stop-Process -name explorer
    Start-Sleep -s 5
    $wshell = New-Object -ComObject wscript.shell; $wshell.SendKeys('^{ESCAPE}')
    Start-Sleep -s 5
    
    #Enable the ability to pin items again by disabling "LockedStartLayout"
    
    foreach ($regAlias in $regAliases){
        $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
        $keyPath = $basePath + "\Explorer" 
        Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0
    }
    
    #Restart Explorer and delete the layout file
    
    Stop-Process -name explorer
    
    • 0

相关问题

  • 在企业中部署 Windows 10 - 如何删除预安装的应用程序?

  • Windows 10 上的 AutoCAD 2017

  • Windows Striped Vs 单硬盘

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve