Windows的一些设置

Task Manager、ssh等等

Task Manager

Task manager doesn’t update resources on real time

  1. At the top, click View.
  2. Navigate to Update speed.
    If it’s paused, then click Normal.

MS-Edge

Regardless of Microsoft’s reasoning, you now know how to toggle the sidebar on or off in Edge 119. Just head to Settings > Sidebar > Copilot > Always Show Sidebar. Alternatively, you can use the Ctrl + Shift + / shortcut.

图标显示不正常

  • 方法一 删除 IconCache.db 文件

C:\Users\用户名\appdata\local

WinRE

KB5028997

  • To disable the WinRE
reagentc /disable
  • diskpart tool
diskpart
  • To re-enable WinRE
reagentc /enable

resize WinRE partition

sel disk 0
list part

To select the OS partition:

sel part 3
shrink desired=250 minimum=250

del WinRE partition

tpye: Recovery

sel part 4
delete partition override

Create a new recovery partition

GPT

create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
format quick fs=ntfs label="Windows RE"
exit

lost WinRE

If you formatted, merged or deleted the “Recovery” disk partition, then:

The Windows RE image was not found.

set path and enable:

reagentc /setreimage /path C:\Recovery\WindowsRE
reagentc /enable

Extract Winre.wim

Extract Winre.wim from install.wim.

  • install.wim
*.iso\sources
  • Winre.win
Windows\System32\Recovery\

PowerShell

  • To get all of the execution policies that affect the current session and display them in precedence order:
Get-ExecutionPolicy -List
  • local script
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser

Policy

  • To set the execution policy in a particular scope:
Set-ExecutionPolicy -ExecutionPolicy <PolicyName> -Scope <scope>

policies

  • AllSigned
  • Bypass
  • Default
  • RemoteSigned
  • Restricted
  • Undefined
  • Unrestricted

How to Download Older Version of Google Chrome

Openssh for windows

(New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)

install-openssh-for-windows

Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

启动服务:

  • ps
Start-Service sshd