星期一, 3月 10, 2025

WIN10/WIN11 常用指令

 命令提示字元

Shift + F10

oobe\bypassnro

start ms-cxh:localonly

群組原則

@echo off pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt dir /b %SystemRoot%\servicing>Pient. /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" pause

取消密碼到期

wmic UserAccount set PasswordExpires=False

ipconfig /flushdns

啟用不安全的訪客登入

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation

新增>「DWORD(32 位元)值」,命名為AllowInsecureGuestAuth

數值資料設為1

關閉 SMB 簽名要求

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\RequireSecuritySignature

數值資料設為 0

Windows PowerShell

Set-SmbClientConfiguration -RequireSecuritySignature $false