スクリーンセーバー設定 にログオン画面にログオン画面に戻るにチェックつけない
reg add “HKEY_CURRENT_USER\Control Panel\Desktop” /v “ScreenSaverIsSecure” /t REG_SZ /d “0” /f
スクリーンセーバー設定 再開時にログオン画面に戻るにチェックつける
reg add “HKEY_CURRENT_USER\Control Panel\Desktop” /v “ScreenSaverIsSecure” /t REG_SZ /d “1” /f
この接続のアドレスをDNSに登録する(ipv4)無効
netsh interface ipv4 set dnsservers name="イーサネット" source=dhcp register=none
コンピュータをスリープ状態にする無効(電源接続時)
powercfg -x standby-timeout-ac 0
全ネットワークアダプタipv6無効
powershell
Get-NetAdapterBinding | ? {$_.DisplayName -match 'ipv6'} | Set-NetAdapterBinding -Enabled $false
rem ディスプレイの電源を切る無効(電源接続時)
powercfg -x monitor-timeout-ac 0
rem コンピュータをスリープ状態にする無効(電源接続時)
powercfg -x standby-timeout-ac 0
ipv6無効のpowershellをバッチファイルで実行
@(echo '> NUL
echo off)
NET SESSION > NUL 2>&1
IF %ERRORLEVEL% neq 0 goto RESTART
setlocal enableextensions
set "THIS_PATH=%~f0"
set "PARAM_1=%~1"
PowerShell.exe -Command "iex -Command ((gc "%THIS_PATH:=``%\") -join \"
n")"
exit /b %errorlevel%
:RESTART
powershell -NoProfile -ExecutionPolicy unrestricted -Command "Start-Process %~f0 -Verb runas"
exit
') | sv -Name TempVar
Get-NetAdapterBinding | ? { $_.DisplayName -match 'ipv6'} | Set-NetAdapterBinding -Enabled $false
Get-NetAdapterBinding
pause