請善用 Ctrl+F 搜尋
Windows 11 專區
跳過oobe : (shift+F10) oobe\bypassnro
WS 2012 .net 3.5
Install-WindowsFeature Net-Framework-Core -Source G:\sources\sxs
Install-WindowsFeature Net-Framework-Core -Source D:\sxs
Dism /online /enable-feature /featurename:NetFx3 /All /Source:G:\sources\sxs /LimitAccess
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:C:\Users\Administrator\Downloads\2012R2\sources\sxs
CMD 指令
0x11b 印表機問題
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f
W11 0x709問題
建立 RPC 設定
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcUseNamedPipeProtocol /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcProtocols /t REG_DWORD /d 7 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v ForceKerberosForRpc /t REG_DWORD /d 1 /f
修改 Print 設定
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f
差異備份
xcopy C:\A\* B:\A\ /D /E /H /R /Y /s
刪除"A"資料夾內超過30天的檔案
forfiles /p "A" /s /m *.* /d -30 /c "cmd /c del /q @file"
將超過30天的檔案從A移到B
forfiles /p "A" /s /m *.* /d -30 /c "cmd /c move @file "B""
資料夾清空
del /q C:\A\*
echo 使用Unicode
chcp 65001
echo 指向目前位置
cd /d "%~dp0"
echo 密碼永久有效
net accounts /maxpwage:unlimited
WMIC USERACCOUNT WHERE "Name='User'" SET PasswordExpires=FALSE
echo 關閉UAC
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t REG_DWORD /d 0 /f
echo 關閉空白密碼
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" /v "LimitBlankPasswordUse" /t REG_DWORD /d 0 /f
echo 啟用數字
reg add "HKCU\Control Panel\Keyboard" /v KeyboardDelay /d 1 /t REG_DWORD /f
reg add "HKCU\Control Panel\Keyboard" /v KeyboardSpeed /d 31 /t REG_DWORD /f
reg add "HKCU\Control Panel\Keyboard" /v InitialKeyboardIndicators /d 80000002 /t REG_DWORD /f
echo 開啟桌面圖示設定
desk.cpl ,
echo 關閉休眠與螢幕保護
powercfg -x -standby-timeout-ac 0
powercfg -x -standby-timeout-dc 0
powercfg -x -monitor-timeout-ac 0
powercfg -x -monitor-timeout-dc 0
echo 建立A使用者且密碼為B
net user A B /add
echo 隱藏A使用者
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /v "A" /t REG_DWORD /d 0 /f
echo 執行目前資料夾中的A.exe
start .\A.exe
echo 重新啟動 (-r重啟 -s關機 -t設定定時 數字為等候時間{單位:秒}
shutdown -r -t 10
echo 取消 shutdown 指令
shutdown -a
echo 複製資料夾 A->B
robocopy "A" "B" /mir /R:0
Windows 左側快捷圖示REG
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
3D物件 {0DB7E03F-FC29-4DC6-9020-FF41B59E513A}
下載 {088e3905-0323-4b02-9826-5d99428e115f}
文件 {d3162b92-9365-467a-956b-92703aca08af}
音樂 {3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}
桌面 {B4BFCC3A-DB2C-424C-B029-7FE99A87C641}
圖片 {24ad3ad4-a569-4530-98e1-ab02f9417aa8}
影片 {f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}