From 1efc700929cef8e99ab2d54a119ad38335110085 Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 17 Nov 2018 02:57:17 +0000 Subject: Small updates --- 2-tweaks.bat | 6 +++++- 3-registry.bat | 16 ++++++++++++++-- 6-network.bat | 14 +++++++++++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/2-tweaks.bat b/2-tweaks.bat index d7645d0..4d59608 100644 --- a/2-tweaks.bat +++ b/2-tweaks.bat @@ -11,4 +11,8 @@ w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.o w32tm /resync /nowait rem don't require signin after wakeup powercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0 -powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0 \ No newline at end of file +powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0 +rem batch file shortcuts +echo robocopy . . /s /move > %windir%\system32\empties.bat +echo dir /b > %windir%\system32\ls.bat +echo exit > %windir%\system32\x.bat \ No newline at end of file diff --git a/3-registry.bat b/3-registry.bat index caf3265..cc0a837 100644 --- a/3-registry.bat +++ b/3-registry.bat @@ -5,7 +5,7 @@ reg add "HKCU\Control Panel\Mouse" /v "MouseSensitivity" /t REG_SZ /d "20" /f rem disable hiding of unused tray icons reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "EnableAutoTray" /t REG_DWORD /d 0 /f rem disable snap assist -reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SnapAssist" /t REG_DWORD /d "0" /f +rem reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "SnapAssist" /t REG_DWORD /d "0" /f rem show hidden files in explorer reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f rem show file extensions in explorer @@ -43,9 +43,11 @@ reg add "HKCR\.cpp" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.cue" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.go" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.json" /ve /t REG_SZ /d "txtfile" /f +reg add "HKCR\.md" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.nfo" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.nfo-orig" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.patch" /ve /t REG_SZ /d "txtfile" /f +reg add "HKCR\.php" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.sh" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.srt" /ve /t REG_SZ /d "txtfile" /f reg add "HKCR\.toml" /ve /t REG_SZ /d "txtfile" /f @@ -67,6 +69,16 @@ reg add "HKLM\SYSTEM\CurrentControlSet\Services\WebClient" /v "Start" /t REG_DWO reg add "HKLM\SYSTEM\CurrentControlSet\Services\wercplsupport" /v "Start" /t REG_DWORD /d "4" /f reg add "HKLM\SYSTEM\CurrentControlSet\Services\WerSvc" /v "Start" /t REG_DWORD /d "4" /f reg add "HKLM\SYSTEM\CurrentControlSet\Services\WSearch" /v "Start" /t REG_DWORD /d "4" /f +rem attempt to disable some online search 'features' +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowSearchToUseLocation" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /ve /t REG_SZ /d "" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchPrivacy" /t REG_DWORD /d "3" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchSafeSearch" /t REG_DWORD /d "3" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWebOverMeteredConnections" /t REG_DWORD /d "0" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "PreventRemoteQueries" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWeb" /t REG_DWORD /d "0" /f rem rename computer name from unique gibberish to Username-PC reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v "NV Hostname" /t REG_SZ /d "%username%-PC" /f reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v "Hostname" /t REG_SZ /d "%username%-PC" /f @@ -149,4 +161,4 @@ reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon" /v "Qat rem remap altgr key to lalt reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d "000000000000000002000000380038e000000000" /f rem support redshift experimental builds -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ICM" /v "GdiIcmGammaRange" /t REG_DWORD /d "256" /f \ No newline at end of file +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ICM" /v "GdiIcmGammaRange" /t REG_DWORD /d "256" /f diff --git a/6-network.bat b/6-network.bat index 39b7f84..6992501 100644 --- a/6-network.bat +++ b/6-network.bat @@ -1,4 +1,12 @@ rem connect to network shares -net use Z: \\atlas\media /USER:%username% /PERSISTENT:YES -net use Y: \\atlas\vault /USER:%username% /PERSISTENT:YES -net use X: \\atlas\downloads /USER:%username% /PERSISTENT:YES \ No newline at end of file +set server=atlas +ping -n 1 %server% | find "TTL=" >nul +if errorlevel 0 ( goto connect ) else ( goto no_connect ) + +:connect +net use Z: \\%server%\media /USER:%username% /PERSISTENT:YES +net use Y: \\%server%\vault /USER:%username% /PERSISTENT:YES +net use X: \\%server%\downloads /USER:%username% /PERSISTENT:YES + +:no_connect +:eof \ No newline at end of file -- cgit v1.2.3