顯示具有 Windows 11 標籤的文章。 顯示所有文章
顯示具有 Windows 11 標籤的文章。 顯示所有文章

2026-08-18

Windows 11 上安裝 SSH Server

Run PowerShell as an Administrator.

Check if OpenSSH is available by running:

Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

If OpenSSH Server is not installed, run:

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

To start the OpenSSH Server, run the following command:

Start-Service sshd

Optionally, set it to start automatically with Windows:

Set-Service -Name sshd -StartupType 'Automatic'

Once these steps are completed, the OpenSSH Server should be running on your Windows 11 Pro computer.

Reference: https://learn.microsoft.com/en-us/answers/questions/5757124/how-to-turn-on-openssh-sever-on-windows-11-pro-com


2025-09-10

2024-12-10

所謂的 智慧應用程式控制 根本「智障」 Smart App Control (SAC) is acturally Stupid App Control (SAC)

近日遇到電腦 Join Domain 重開機後,結束 Windows Mark 的 Loading 階段後就畫面全黑也沒有顯示滑鼠游標更沒有顯示帳號登入畫面的慘烈情況。這個問題在全新安裝的 Windows 11 發生,如果是滿久之前安裝的電腦即使有安裝到最新的 Update / Hotfix 也沒有這個問題。

在連續重灌、加入網域都相同情況後,為了確認是否為 GPO 影響,將 Computer Account 搬移至一個測試用的空 OU,並將 GPO 逐次套用到該 OU 中用以確認是否是哪一個 GPO 影響。在這個測試過程中,因為無法有規律地複製出錯誤,於是決定開始在 Join Domain 後不立刻重新開機,而是執行 gpresult /r /scope computer 來看情況,並下 gpupdate /force 來確認有套用到 GPO,但卻偶然會開始在執行指令後出現: This program is blocked by Group Policy. For more info, contact your System Administrator. 的訊息,並且再也無法開啟任何應用程式,包含: cmd、notepad 等,任何應用程式。但問題此訊息似乎與套用到哪一個或哪些 GPO 無關。