LoginSignup
6
3

More than 5 years have passed since last update.

windows10 キッティングコマンド

Last updated at Posted at 2018-08-25

スクリーンセーバー設定 にログオン画面にログオン画面に戻るにチェックつけない
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

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3