File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
3. General Configuration/File Sharing
AtlasModules/Scripts/ScriptWrappers Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v state /t REG_DWORD /d
2626reg add " HKLM\SOFTWARE\AtlasOS\Services\%settingName% " /v path /t REG_SZ /d " %scriptPath% " /f > nul
2727
2828powershell -EP Bypass -NoP -File " %script% "
29- if " %~1 " == " /silent" powershell -EP Bypass -NoP -File " %script% " -Silent
3029if " %~1 " == " /silent" exit /b
3130
31+ choice /c:yn /n /m " Finished, would you like to restart now to apply the changes? [Y/N] "
32+ if %ERRORLEVEL% == 1 shutdown /r /t 0
3233echo Finished, File Sharing is now disabled.
3334pause > nul
3435exit /b
Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v state /t REG_DWORD /d
2626reg add " HKLM\SOFTWARE\AtlasOS\Services\%settingName% " /v path /t REG_SZ /d " %scriptPath% " /f > nul
2727
2828powershell -EP Bypass -NoP -File " %script% "
29- if " %~1 " == " /silent" powershell -EP Bypass -NoP -File " %script% " -Silent
3029if " %~1 " == " /silent" exit /b
3130
31+ choice /c:yn /n /m " Finished, would you like to restart now to apply the changes? [Y/N] "
32+ if %ERRORLEVEL% == 1 shutdown /r /t 0
3233echo Finished, File Sharing is now enabled.
3334pause > nul
3435exit /b
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked
2727reg add " HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v " {EE07CEF5-3441-4CFB-870A-4002C724783A}" /d " " /f > nul
2828reg add " HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v " {D12E3394-DE4B-4777-93E9-DF0AC88F8584}" /d " " /f > nul
2929
30- if " %~1 " == " /justcontext" exit /b
3130if " %~1 " == " /silent" exit /b
3231
3332echo Changes applied successfully.
Original file line number Diff line number Diff line change @@ -36,5 +36,4 @@ if ($Silent) { exit }
3636
3737Write-Host " `n Completed! " - ForegroundColor Green - NoNewLine
3838Write-Host " You'll need to restart to apply the changes." - ForegroundColor Yellow
39- $null = Read-Host " Press Enter to exit..."
4039exit
Original file line number Diff line number Diff line change @@ -47,5 +47,4 @@ if ($LASTEXITCODE -eq 1) {
4747
4848Write-Host " `n Completed! " - ForegroundColor Green - NoNewLine
4949Write-Host " You'll need to restart to apply the changes." - ForegroundColor Yellow
50- $null = Read-Host " Press Enter to exit..."
5150exit
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ foreach ($script in $folderItems)
1212 & $script.FullName / silent
1313 Write-Host $script.PSChildName
1414 }
15- }
15+ }
16+ exit 0
You can’t perform that action at this time.
0 commit comments