image frame

博客

知足常乐

49.Win10时钟显示秒

打开Win10时钟的秒显示

1
taskkill /F /IM explorer.exe & reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f & start %windir%\explorer.exe

关闭Win10时钟的秒显示

1
taskkill /F /IM explorer.exe & reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /f & start %windir%\explorer.exe

48.去除桌面图标小箭头和盾牌

去除桌面图标小箭头和盾牌:

1
taskkill /F /IM explorer.exe & reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /t REG_SZ /d %windir%\system32\imageres.dll,197 /f & reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 77 /t REG_SZ /d %windir%\system32\imageres.dll,197 /f & attrib -s -r -h %userprofile%\AppData\Local\iconcache.db & del %userprofile%\AppData\Local\iconcache.db /f /q & start %windir%\explorer.exe

重新显示桌面图标小箭头和盾牌:

1
taskkill /F /IM explorer.exe & reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f & attrib -s -r -h %userprofile%\AppData\Local\iconcache.db & del %userprofile%\AppData\Local\iconcache.db /f /q & start %windir%\explorer.exe

46.Win11右键改回经典样式

经典样式:

1
taskkill /F /IM explorer.exe & reg add "HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /t REG_SZ /d "" /f & start %windir%\explorer.exe

原版样式:

1
taskkill /F /IM explorer.exe & reg delete "HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f & start %windir%\explorer.exe

45.添加右键切换电源计划

添加命令:

1
reg delete "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan" /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan" /v Icon /t REG_SZ /d powercpl.dll /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan" /v MUIVerb /t REG_SZ /d 切换电源计划 /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan" /v Position /t REG_SZ /d Bottom /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan" /v SubCommands /t REG_SZ /d "" /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\01menu" /v Icon /t REG_SZ /d powercpl.dll /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\01menu" /v MUIVerb /t REG_SZ /d 节能 /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\01menu\Command" /ve /t REG_SZ /d "powercfg /setactive a1841308-3541-4fab-bc81-f71556f20b4a" /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\02menu" /v Icon /t REG_SZ /d powercpl.dll /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\02menu" /v MUIVerb /t REG_SZ /d 平衡 /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\02menu\Command" /ve /t REG_SZ /d "powercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e" /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\03menu" /v Icon /t REG_SZ /d powercpl.dll /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\03menu" /v MUIVerb /t REG_SZ /d 高性能 /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\03menu\Command" /ve /t REG_SZ /d "powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\04menu" /v Icon /t REG_SZ /d powercpl.dll /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\04menu" /v MUIVerb /t REG_SZ /d 卓越性能 /f & reg add "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan\Shell\04menu\Command" /ve /t REG_SZ /d "powercfg /setactive e9a42b02-d5df-448d-aa00-03f14749eb61" /f

删除命令:

1
reg delete "HKEY_CLASSES_ROOT\DesktopBackground\shell\SwitchPowerPlan" /f

44.更改网络为公用或专用

方法一:用PowerShell命令的方式修改(比较安全,仅限于当前连接的网络)

获取网络连接信息

1
Get-NetConnectionProfile

设置为专用

1
Set-NetConnectionProfile -Name 网络 -NetworkCategory Private

设置为公用

1
Set-NetConnectionProfile -Name 网络 -NetworkCategory Public

命令组合修改

1
$Name = Get-NetConnectionProfile;Set-NetConnectionProfile -Name $Name.Name -NetworkCategory Private

方法二:修改注册表(暂时等之后再总结)

  • Copyrights © 2023-2024 kukusun