icps

notes

Newline

echo -e "\e[9m%s\e[0m"

Auto_hide_taskbar

1
2
3
4
5
6
7
8
9
10
11
12
@echo off
set logPath="z:\taskbar.log"
set /p log=< %logPath%
set cmd1="&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]="
set cmd2=";&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}"
if %log% == 1 (
    powershell -command %cmd1%3%cmd2%
    echo 0 > %logPath%
) else (
    powershell -command %cmd1%2%cmd2%
    echo 1 > %logPath%
)

Port

netstat -aon | findstr '[port_number]'
tasklist | findstr '[PID]'

netsh interface portproxy show all

Autologin

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device]
"DevicePasswordLessBuildVersion"=dword:00000000


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="abc"
"DefaultPassword"="123"

netplwiz