jmsdhn 發表於 2021-12-6 18:48

如何關閉工作列上的【搜尋】【小工具】【聊天】圖示

本帖最後由 jmsdhn 於 2021-12-7 11:30 編輯

打擾了!
突然發現Cortana預設沒出現在工作列了

這設定幾乎可以拿掉
"HKLM\Software\Policies\Microsoft\Windows\Windows Search" AllowCortana
差別只在於顯示的內容
一個是要管理員允許
一個是地區限制


這時候就開始想到
【搜尋】【小工具】【聊天】甚至【工作檢視】


除了用介面方式關掉外
是否有REG的設定方法

感謝分享教學~


話說win11的【工作檢視】
實在太棒了!


maodou 發表於 2021-12-6 22:19

本帖最後由 maodou 於 2021-12-6 22:42 編輯

PowerShell/CMD搜尋
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f

工作檢視
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f

聊天
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarMn /t REG_DWORD /d 0 /f

小工具
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarDa /t REG_DWORD /d 0 /f

foster 發表於 2021-12-7 09:53

maodou 發表於 2021-12-6 22:19
PowerShell/CMD

M大,Microsoft Store是否也可以隱藏?


https://i.imgur.com/3CvCOlt.jpg

maodou 發表於 2021-12-7 10:39

本帖最後由 maodou 於 2021-12-7 23:11 編輯

foster 發表於 2021-12-7 09:53
M大,Microsoft Store是否也可以隱藏?



沒辦法用改Registry "隱藏", 要"從工作列取消釘選"

maodou 發表於 2021-12-7 17:32

本帖最後由 maodou 於 2021-12-7 23:08 編輯

foster 發表於 2021-12-7 09:53
M大,Microsoft Store是否也可以隱藏?



PowerShell (管理員權限)((New-Object -ComObject Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq 'Microsoft Store'}).Verbs() | ?{$_.Name -match '從工作列取消釘選'} | %{$_.DoIt()}CMD (管理員權限)powershell -NoProfile -ExecutionPolicy Bypass -Command "((New-Object -ComObject Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq 'Microsoft Store'}).Verbs() | ?{$_.Name -match '從工作列取消釘選'} | %{$_.DoIt()}"

foster 發表於 2021-12-8 08:54

maodou 發表於 2021-12-7 17:32
PowerShell (管理員權限)CMD (管理員權限)

若一樣要整合至 $OEM$ ,不知 SetupComplete.cmd 如何下指令?
兩段程式碼經測試執行皆無作用。

maodou 發表於 2021-12-8 10:56

本帖最後由 maodou 於 2021-12-8 10:57 編輯

foster 發表於 2021-12-8 08:54
若一樣要整合至 $OEM$ ,不知 SetupComplete.cmd 如何下指令?
兩段程式碼經測試執行皆無作用。
...
應該是因為有中文字(從工作列取消釘選)編碼影響(Unicode)的關係

用這樣試試:

SetupComplete.cmd@echo off
powershell -ExecutionPolicy Bypass -File .\msstore.ps1msstore.ps1
檔案放在跟SetupComplete.cmd同一個目錄, 檔案編碼格式要是 UTF-16 LE((New-Object -ComObject Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq 'Microsoft Store'}).Verbs() | ?{$_.Name -match '從工作列取消釘選'} | %{$_.DoIt()}

foster 發表於 2021-12-8 14:51

maodou 發表於 2021-12-8 10:56
應該是因為有中文字(從工作列取消釘選)編碼影響(Unicode)的關係

用這樣試試:


M大,看起來還是無效!

https://i.imgur.com/XfI9lnj.jpg

foster 發表於 2021-12-8 15:34

maodou 發表於 2021-12-8 10:56
應該是因為有中文字(從工作列取消釘選)編碼影響(Unicode)的關係

用這樣試試:


M大,版本如圖。

https://i.imgur.com/gCJ1loW.jpg


maodou 發表於 2021-12-9 17:13

本帖最後由 maodou 於 2021-12-10 10:40 編輯

foster 發表於 2021-12-8 15:34
M大,版本如圖。



改成這樣, 用 SetupComplete.cmd (UTF-8) 就可以:@echo off
reg load HKLM\DEFAULT %SystemDrive%\Users\Default\ntuser.dat
reg add "HKLM\DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v "UnpinMsStore" /t REG_SZ /d "powershell -WindowStyle Hidden -ExecutionPolicy Bypass -Command \"(((New-Object -ComObject Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() ^| ?{$_.Name -eq 'Microsoft Store'}).Verbs() ^| ?{$_.Name -match '^&K'}).DoIt()\"" /f
reg unload HKLM\DEFAULTWindows 11 專業版 22000.348
Windows 10 專業版 19044.1288
測試過可以
頁: [1]
查看完整版本: 如何關閉工作列上的【搜尋】【小工具】【聊天】圖示