Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Service Warning script #1287

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ fltmc > nul 2>&1 || (
exit /b
)

:: Warn user about service modifications
call serviceWarning.cmd

call setSvc.cmd KSecPkg 4
call setSvc.cmd LanmanServer 4
call setSvc.cmd LanmanWorkstation 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ fltmc > nul 2>&1 || (
exit /b
)

:: Warn user about service modifications
call serviceWarning.cmd

:: Unpin 'Network' from Explorer sidebar
reg import "%windir%\AtlasDesktop\3. General Configuration\File Sharing\Network Navigation Pane\Disable Network Navigation Pane (default).reg" > nul

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ fltmc > nul 2>&1 || (
:main
setlocal EnableDelayedExpansion

:: Warn user about service modifications
call serviceWarning.cmd

:: Remove lower filters for rdyboost driver
set "key=HKLM\SYSTEM\CurrentControlSet\Control\Class\{71a27cdd-812a-11d0-bec7-08002be2092f}"
for /f "skip=1 tokens=3*" %%a in ('reg query !key! /v "LowerFilters"') do (set val=%%a)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off
goto main

----------------------------------------

[FEATURES]
- Reusable warning for the user if a script modifies services and notifies of possible breakage.

[USAGE]
call serviceWarning.cmd [optional:specific comment for service breakage, use quotes]

----------------------------------------

:main
echo ------------------------------------------------------
echo WARNING: This script will modify system services.
echo Modifying services can lead to potential breakage of features and bugs.
echo Proceed with caution, and refer to Atlas docs for more information!
if not "%~1"=="" echo Specific Note: %~1
echo ------------------------------------------------------
pause
Loading