Skip to content

Commit

Permalink
feat: use a loop for style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Aug 8, 2023
1 parent 7b34eb8 commit e0bca24
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoUseStoreOpenWi
:: Block access to Microsoft Store
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v "RemoveWindowsStore" /t REG_DWORD /d "1" /f > nul 2>&1

call setSvc.cmd AppXSvc 4
call setSvc.cmd ClipSVC 4
call setSvc.cmd FileCrypt 4
call setSvc.cmd FileInfo 4
call setSvc.cmd InstallService 4
call setSvc.cmd LicenseManager 4
call setSvc.cmd TokenBroker 4
call setSvc.cmd WinHttpAutoProxySvc 4
for %%a in (
"AppXSvc"
"ClipSVC"
"FileCrypt"
"FileInfo"
"InstallService"
"LicenseManager"
"TokenBroker"
"WinHttpAutoProxySvc"
) do (
call setSvc.cmd %%~a 4
)

echo Finished, please reboot your device for changes to apply.
pause
Expand Down

0 comments on commit e0bca24

Please sign in to comment.