removed setacl, sdio and vivetool
This commit is contained in:
parent
9a78ed8fe1
commit
d6d9ad83f6
@ -11,10 +11,8 @@ for %%K in (
|
|||||||
|
|
||||||
) do (
|
) do (
|
||||||
|
|
||||||
echo %%K
|
echo deleting registry key [ %%K ] using NSUDO ...
|
||||||
setacl -on %%K -ot reg -actn setowner -ownr "n:Administrators" 1>nul 2>nul
|
nsudo -U:T -P:E reg delete %%K /f
|
||||||
setacl -on %%K -ot reg -actn ace -ace "n:Administrators;p:full" 1>nul 2>nul
|
|
||||||
reg delete %%K /f
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Binary file not shown.
@ -39,8 +39,7 @@ echo KILLING all OneDrive SETUP instances ...
|
|||||||
taskkill /f /im OneDriveSetup.exe > NUL 2>&1
|
taskkill /f /im OneDriveSetup.exe > NUL 2>&1
|
||||||
|
|
||||||
echo removing OneDrive setup exe ...
|
echo removing OneDrive setup exe ...
|
||||||
setacl -on %OneDrive% -ot file -actn setowner -ownr "n:Administrators" 1>nul 2>nul
|
icacls %OneDrive% /grant Users:F 2>nul
|
||||||
setacl -on %OneDrive% -ot file -actn ace -ace "n:Administrators;p:full" 1>nul 2>nul
|
|
||||||
del /F %OneDrive% 2>nul
|
del /F %OneDrive% 2>nul
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
@ -22,14 +22,11 @@ for %%A in (
|
|||||||
registryfinder
|
registryfinder
|
||||||
regscanner
|
regscanner
|
||||||
restic
|
restic
|
||||||
sdio
|
|
||||||
setacl
|
|
||||||
serviwin
|
serviwin
|
||||||
showkeyplus
|
showkeyplus
|
||||||
trid
|
trid
|
||||||
triddefs
|
triddefs
|
||||||
vim
|
vim
|
||||||
vivetool
|
|
||||||
wget
|
wget
|
||||||
wgetdeps
|
wgetdeps
|
||||||
winscp
|
winscp
|
||||||
@ -108,23 +105,11 @@ move /Y %T%\restic\*.exe %TOOLS%\restic.exe
|
|||||||
rd /S /Q %T%\restic
|
rd /S /Q %T%\restic
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo Snappy Driver Installer Origin (SDIO)
|
|
||||||
mkdir %TOOLS%\sdio 2>nul
|
|
||||||
move /Y %T%\sdio\SDIO_x64_R749.exe %TOOLS%\sdio
|
|
||||||
move /Y %T%\sdio\"SDIO Reference Manual.pdf" %TOOLS%\sdio
|
|
||||||
rd /S /Q %T%\sdio
|
|
||||||
echo.
|
|
||||||
|
|
||||||
echo ServiWIN
|
echo ServiWIN
|
||||||
move /Y %T%\serviwin\*.exe %TOOLS%
|
move /Y %T%\serviwin\*.exe %TOOLS%
|
||||||
rd /S /Q %T%\serviwin
|
rd /S /Q %T%\serviwin
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo SetACL
|
|
||||||
move /Y %T%\setacl\*.exe %TOOLS%
|
|
||||||
rd /S /Q %T%\setacl
|
|
||||||
echo.
|
|
||||||
|
|
||||||
echo ShowKeyPlus
|
echo ShowKeyPlus
|
||||||
move /Y %T%\showkeyplus\*.exe %TOOLS%
|
move /Y %T%\showkeyplus\*.exe %TOOLS%
|
||||||
rd /S /Q %T%\showkeyplus
|
rd /S /Q %T%\showkeyplus
|
||||||
@ -147,12 +132,6 @@ rem create symbolic link ...
|
|||||||
mklink %TOOLS%\vi.exe %TOOLS%\vim.exe 2>nul
|
mklink %TOOLS%\vi.exe %TOOLS%\vim.exe 2>nul
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo ViveTool
|
|
||||||
move /Y %T%\vivetool\vivetool.exe %TOOLS%
|
|
||||||
move /Y %T%\vivetool\*.dll %TOOLS%
|
|
||||||
rd /S /Q %T%\vivetool
|
|
||||||
echo.
|
|
||||||
|
|
||||||
echo wGET
|
echo wGET
|
||||||
move /Y %T%\wget\wget.exe %TOOLS%
|
move /Y %T%\wget\wget.exe %TOOLS%
|
||||||
rd /S /Q %T%\wget
|
rd /S /Q %T%\wget
|
||||||
|
@ -23,7 +23,6 @@ https://www.nirsoft.net/utils/regscanner-x64.zip regscanner.zip
|
|||||||
https://github.com/pbatard/rufus/releases/download/v3.13/rufus-3.13p.exe rufus.exe
|
https://github.com/pbatard/rufus/releases/download/v3.13/rufus-3.13p.exe rufus.exe
|
||||||
http://www.drivesnapshot.de/download/snapshot64.exe snapshot64.exe
|
http://www.drivesnapshot.de/download/snapshot64.exe snapshot64.exe
|
||||||
https://github.com/Superfly-Inc/ShowKeyPlus/releases/download/ShowKeyPlus1.1.16.0/ShowKeyPlus1.1.16.0_x64.zip showkeyplus.zip
|
https://github.com/Superfly-Inc/ShowKeyPlus/releases/download/ShowKeyPlus1.1.16.0/ShowKeyPlus1.1.16.0_x64.zip showkeyplus.zip
|
||||||
https://github.com/thebookisclosed/ViVe/releases/download/v0.2.1/ViVeTool-v0.2.1.zip vivetool.zip
|
|
||||||
https://win32diskimager.org/wp-content/uploads/win32diskimager-1.0.0-install.exe win32diskimager.exe
|
https://win32diskimager.org/wp-content/uploads/win32diskimager-1.0.0-install.exe win32diskimager.exe
|
||||||
https://ftp.halifax.rwth-aachen.de/videolan/vlc/3.0.12/win64/vlc-3.0.12-win64.exe vlc-setup.exe
|
https://ftp.halifax.rwth-aachen.de/videolan/vlc/3.0.12/win64/vlc-3.0.12-win64.exe vlc-setup.exe
|
||||||
https://www.heidoc.net/php/Windows-ISO-Downloader.exe Windows-ISO-Downloader.exe
|
https://www.heidoc.net/php/Windows-ISO-Downloader.exe Windows-ISO-Downloader.exe
|
||||||
@ -32,7 +31,6 @@ https://www.inveigle.net/downloads/CMail_0.8.3_amd64.zip cmail.zip
|
|||||||
https://github.com/M2Team/NSudo/releases/download/8.2/NSudo_8.2_All_Components.zip nsudo.zip
|
https://github.com/M2Team/NSudo/releases/download/8.2/NSudo_8.2_All_Components.zip nsudo.zip
|
||||||
https://www.nirsoft.net/utils/serviwin-x64.zip serviwin.zip
|
https://www.nirsoft.net/utils/serviwin-x64.zip serviwin.zip
|
||||||
https://www.nirsoft.net/utils/devmanview-x64.zip devmanview.zip
|
https://www.nirsoft.net/utils/devmanview-x64.zip devmanview.zip
|
||||||
https://www.glenn.delahoy.com/downloads/sdio/SDIO_1.12.9.749.zip sdio.zip
|
|
||||||
https://registry-finder.com/bin/2.55.0.0/RegistryFinder64.zip registryfinder.zip
|
https://registry-finder.com/bin/2.55.0.0/RegistryFinder64.zip registryfinder.zip
|
||||||
https://mark0.net/download/trid_w32.zip trid.zip
|
https://mark0.net/download/trid_w32.zip trid.zip
|
||||||
https://mark0.net/download/triddefs.zip triddefs.zip
|
https://mark0.net/download/triddefs.zip triddefs.zip
|
||||||
|
|
@ -1,4 +1,3 @@
|
|||||||
dummy setacl.zip
|
|
||||||
dummy citrixworkspace-setup.exe
|
dummy citrixworkspace-setup.exe
|
||||||
dummy nsepa_setup.exe
|
dummy nsepa_setup.exe
|
||||||
dummy xojo-setup.exe
|
dummy xojo-setup.exe
|
||||||
|
|
189
tools/logon.cmd
189
tools/logon.cmd
@ -27,8 +27,8 @@ set emclient_license=0
|
|||||||
set seafile_domain=0
|
set seafile_domain=0
|
||||||
set install_aerolite=0
|
set install_aerolite=0
|
||||||
|
|
||||||
echo ####### %0 #######
|
|
||||||
|
|
||||||
|
echo ####### %0 #######
|
||||||
|
|
||||||
rem ===================
|
rem ===================
|
||||||
rem CONFIGFILE CHECKS
|
rem CONFIGFILE CHECKS
|
||||||
@ -53,43 +53,16 @@ if NOT EXIST %COMPANY_SETTINGS% (
|
|||||||
call %COMPANY_SETTINGS%
|
call %COMPANY_SETTINGS%
|
||||||
)
|
)
|
||||||
|
|
||||||
echo.
|
|
||||||
echo #####
|
|
||||||
echo ##### GENERIC tasks
|
|
||||||
echo #####
|
|
||||||
echo.
|
|
||||||
|
|
||||||
rem ===================
|
|
||||||
rem EMCLIENT LICENSING
|
|
||||||
rem ===================
|
|
||||||
|
|
||||||
rem licensing for emClient already done ?
|
|
||||||
if EXIST %EMLICENSE_DONE% GOTO EMCLIENT_END
|
|
||||||
|
|
||||||
if %emclient_license% == 0 (
|
|
||||||
echo no emClient license found!
|
|
||||||
) else (
|
|
||||||
echo.
|
|
||||||
if EXIST "%ProgramFiles(x86)%\eM Client\MailClient.exe" (
|
|
||||||
echo Adding emClient license ...
|
|
||||||
"%ProgramFiles(x86)%\eM Client\MailClient.exe" /activate %emclient_license%
|
|
||||||
|
|
||||||
rem create a statusfile (this codeblock must be executed only once per use) ...
|
|
||||||
echo 1 >%EMLICENSE_DONE%
|
|
||||||
|
|
||||||
) else (
|
|
||||||
echo emClient is NOT installed!
|
|
||||||
)
|
|
||||||
echo.
|
|
||||||
)
|
|
||||||
|
|
||||||
:EMCLIENT_END
|
|
||||||
|
|
||||||
|
|
||||||
rem ================================================
|
rem ================================================
|
||||||
rem GENERIC SETTINGS FOR THE USER (this runs always)
|
rem GENERIC SETTINGS FOR THE USER (this runs always)
|
||||||
rem ================================================
|
rem ================================================
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo #####
|
||||||
|
echo ##### GENERIC tasks and settings
|
||||||
|
echo #####
|
||||||
|
echo.
|
||||||
|
|
||||||
echo Removing the wallpaper ...
|
echo Removing the wallpaper ...
|
||||||
reg add "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul
|
reg add "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul
|
||||||
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
|
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
|
||||||
@ -121,6 +94,34 @@ if EXIST %USERPROFILE%\Seafile (
|
|||||||
attrib -S %USERPROFILE%\Seafile /S /D
|
attrib -S %USERPROFILE%\Seafile /S /D
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
rem ===================
|
||||||
|
rem EMCLIENT LICENSING
|
||||||
|
rem ===================
|
||||||
|
|
||||||
|
rem licensing for emClient already done ?
|
||||||
|
if EXIST %EMLICENSE_DONE% GOTO EMCLIENT_END
|
||||||
|
|
||||||
|
if %emclient_license% == 0 (
|
||||||
|
echo no emClient license found!
|
||||||
|
) else (
|
||||||
|
echo.
|
||||||
|
if EXIST "%ProgramFiles(x86)%\eM Client\MailClient.exe" (
|
||||||
|
echo Adding emClient license ...
|
||||||
|
"%ProgramFiles(x86)%\eM Client\MailClient.exe" /activate %emclient_license%
|
||||||
|
|
||||||
|
rem create a statusfile (this codeblock must be executed only once per use) ...
|
||||||
|
echo 1 >%EMLICENSE_DONE%
|
||||||
|
|
||||||
|
) else (
|
||||||
|
echo emClient is NOT installed!
|
||||||
|
)
|
||||||
|
echo.
|
||||||
|
)
|
||||||
|
|
||||||
|
:EMCLIENT_END
|
||||||
|
|
||||||
|
|
||||||
rem =====================================================
|
rem =====================================================
|
||||||
rem ACCOUNT TWEAKS AND CONFIG FILES (this runs only once)
|
rem ACCOUNT TWEAKS AND CONFIG FILES (this runs only once)
|
||||||
rem =====================================================
|
rem =====================================================
|
||||||
@ -134,6 +135,32 @@ echo ##### INITIAL account setup
|
|||||||
echo #####
|
echo #####
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
rem ===============
|
||||||
|
rem ONLY FOR ADMINS
|
||||||
|
rem ===============
|
||||||
|
|
||||||
|
isuseradmin
|
||||||
|
if %ERRORLEVEL% == 0 (
|
||||||
|
|
||||||
|
echo Disabling unwanted NETWORK features ...
|
||||||
|
call %TOOLS%\scripts\disable-networkfeatures.cmd 1>nul 2>nul
|
||||||
|
|
||||||
|
echo Cleaning up tiles in the START menu ...
|
||||||
|
call %TOOLS%\scripts\cleanup-tiles.cmd 1>nul 2>nul
|
||||||
|
|
||||||
|
rem ... stupid OS!
|
||||||
|
rem why the heck is the Startmenu entry for "System Tools" installed per user ? stupid Microsoft.
|
||||||
|
echo Moving system tools links ...
|
||||||
|
move /Y %STARTMENU%\"System Tools\*.*" ^
|
||||||
|
%STARTMENU_PUBLIC%\"System Tools" 1>nul 2>nul
|
||||||
|
|
||||||
|
rem Removing and renaming objects in the "System Tools" folder...
|
||||||
|
move /Y %STARTMENU_PUBLIC%\"System Tools\computer.lnk" ^
|
||||||
|
%STARTMENU_PUBLIC%\"System Tools\This PC.lnk" 1>nul 2>nul
|
||||||
|
del /F %STARTMENU_PUBLIC%\"System Tools\Command Prompt.lnk" 2>nul
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
rem WORKSPACE folder
|
rem WORKSPACE folder
|
||||||
echo Creating folder %USERPROFILE%\workspace ...
|
echo Creating folder %USERPROFILE%\workspace ...
|
||||||
mkdir %USERPROFILE%\workspace 1>nul 2>nul
|
mkdir %USERPROFILE%\workspace 1>nul 2>nul
|
||||||
@ -246,18 +273,6 @@ if %install_aerolite% == 1 (
|
|||||||
echo.
|
echo.
|
||||||
)
|
)
|
||||||
|
|
||||||
rem ===============
|
|
||||||
rem ONLY FOR ADMINS
|
|
||||||
rem ===============
|
|
||||||
|
|
||||||
isuseradmin
|
|
||||||
if %ERRORLEVEL% == 0 (
|
|
||||||
echo Disabling unwanted NETWORK features ...
|
|
||||||
call %TOOLS%\scripts\disable-networkfeatures.cmd 1>nul 2>nul
|
|
||||||
echo Cleaning up tiles in the START menu ...
|
|
||||||
call %TOOLS%\scripts\cleanup-tiles.cmd 1>nul 2>nul
|
|
||||||
)
|
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo preparing the SEAFILE configuration
|
echo preparing the SEAFILE configuration
|
||||||
echo ########################################
|
echo ########################################
|
||||||
@ -282,36 +297,6 @@ echo reorganizing start menu and desktop
|
|||||||
echo ########################################
|
echo ########################################
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
rem ... stupid OS problem #4
|
|
||||||
rem why the heck are "System Tools" installed per user ? stupid Microsoft.
|
|
||||||
echo Moving system tools links ...
|
|
||||||
move /Y %STARTMENU%\"System Tools\*.*" ^
|
|
||||||
%STARTMENU_PUBLIC%\"System Tools" 1>nul 2>nul
|
|
||||||
|
|
||||||
rem Removing and renaming some start menu stuff ...
|
|
||||||
move /Y %STARTMENU_PUBLIC%\"System Tools\computer.lnk" ^
|
|
||||||
%STARTMENU_PUBLIC%\"System Tools\This PC.lnk" 1>nul 2>nul
|
|
||||||
del /F %STARTMENU_PUBLIC%\"System Tools\Command Prompt.lnk" 2>nul
|
|
||||||
|
|
||||||
rem ... stupid OS problem #5
|
|
||||||
rem same here for the accessibility tools. WHY ? stupid Microsoft.
|
|
||||||
echo Moving accessibility tools to accessories folder ...
|
|
||||||
move /Y %STARTMENU%\"Accessibility\*.*" ^
|
|
||||||
%STARTMENU_PUBLIC%\"Accessories" 2>nul
|
|
||||||
|
|
||||||
echo Removing public accessibility tools folder ...
|
|
||||||
rd /S /Q %STARTMENU_PUBLIC%\Accessibility 2>nul
|
|
||||||
|
|
||||||
rem ... stupid OS problem #6
|
|
||||||
rem Edge is such a zombie!
|
|
||||||
echo Removing microsoft edge links in start menu and desktop ...
|
|
||||||
del /F %STARTMENU%\"Microsoft Edge.lnk" 2>nul
|
|
||||||
del /F %USERPROFILE%\"Desktop\Microsoft Edge.lnk" 2>nul
|
|
||||||
|
|
||||||
rem IE too!
|
|
||||||
echo Removing IE link in start menu ...
|
|
||||||
del /F %STARTMENU%\"Accessories\Internet Explorer.lnk" 2>nul
|
|
||||||
|
|
||||||
rem Onedrive ...
|
rem Onedrive ...
|
||||||
echo Removing OneDrive link in start menu ...
|
echo Removing OneDrive link in start menu ...
|
||||||
del /F %APPDATA%\"Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
|
del /F %APPDATA%\"Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
|
||||||
@ -346,24 +331,43 @@ rem ===============
|
|||||||
|
|
||||||
isuseradmin
|
isuseradmin
|
||||||
if %ERRORLEVEL% == 0 (
|
if %ERRORLEVEL% == 0 (
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
call %TOOLS%\scripts\uninstall-onedrive.cmd
|
call %TOOLS%\scripts\uninstall-onedrive.cmd
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
call %TOOLS%\scripts\uninstall-edge.cmd
|
call %TOOLS%\scripts\uninstall-edge.cmd
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
call %TOOLS%\scripts\uninstall-pchealth.cmd
|
call %TOOLS%\scripts\uninstall-pchealth.cmd
|
||||||
|
|
||||||
|
rem ... stupid OS!
|
||||||
|
rem why the heck is the Startmenu entry for "Accessibility Tools" installed per user ? stupid Microsoft.
|
||||||
|
rem must be done (here) more than once, because Microsoft patches can reinstall some tools ...
|
||||||
|
echo.
|
||||||
|
echo Moving accessibility tools to accessories folder ...
|
||||||
|
move /Y %STARTMENU%\"Accessibility\*.*" ^
|
||||||
|
%STARTMENU_PUBLIC%\Accessories 2>nul
|
||||||
|
|
||||||
|
move /Y %STARTMENU_PUBLIC%\"Accessibility\*.*" ^
|
||||||
|
%STARTMENU_PUBLIC%\Accessories 2>nul
|
||||||
|
|
||||||
|
echo Removing public accessibility tools folder ...
|
||||||
|
rd /S /Q %STARTMENU_PUBLIC%\Accessibility 2>nul
|
||||||
|
|
||||||
|
) else (
|
||||||
|
|
||||||
|
echo Removing accessibility tools folder ...
|
||||||
|
rd /S /Q %STARTMENU%\Accessibility 2>nul
|
||||||
|
|
||||||
|
echo Removing users accessories folder ...
|
||||||
|
rd /S /Q %STARTMENU%\Accessories 2>nul
|
||||||
|
|
||||||
|
echo Removing users system tools folder ...
|
||||||
|
rd /S /Q %STARTMENU%\"System Tools" 2>nul
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
echo.
|
|
||||||
echo Cleaning user settings
|
|
||||||
echo ########################################
|
|
||||||
echo.
|
|
||||||
|
|
||||||
rem ... stupid OS problem #7
|
|
||||||
rem Rewards ? Really ? Seriously ?
|
|
||||||
echo Disabling the nag screen in windows settings ...
|
|
||||||
%TOOLS%\vivetool delconfig 18299130 1
|
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo Cleaning users home directory
|
echo Cleaning users home directory
|
||||||
echo ########################################
|
echo ########################################
|
||||||
@ -409,9 +413,22 @@ echo Other tasks and fixes for the user
|
|||||||
echo ########################################
|
echo ########################################
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
rem ... stupid OS!
|
||||||
|
rem IE is such a zombie. I's coming back all the time ...
|
||||||
|
echo Removing IE link in users start menu ...
|
||||||
|
del /F %STARTMENU%\"Accessories\Internet Explorer.lnk" 2>nul
|
||||||
|
|
||||||
|
rem ... stupid OS!
|
||||||
|
rem Edge is a zombie too!
|
||||||
|
echo Removing microsoft edge links in start menu and desktop ...
|
||||||
|
del /F %STARTMENU%\"Microsoft Edge.lnk" 2>nul
|
||||||
|
del /F %USERPROFILE%\"Desktop\Microsoft Edge.lnk" 2>nul
|
||||||
|
|
||||||
|
rem re-create "Pictures" in case it was deleted ...
|
||||||
echo Creating "Pictures" folder for snipping tool ...
|
echo Creating "Pictures" folder for snipping tool ...
|
||||||
mkdir %USERPROFILE%\Pictures 2>nul
|
mkdir %USERPROFILE%\Pictures 2>nul
|
||||||
|
|
||||||
|
rem workstation service should run always ...
|
||||||
echo Starting the workstation service ...
|
echo Starting the workstation service ...
|
||||||
net start workstation 1>nul 2>nul
|
net start workstation 1>nul 2>nul
|
||||||
net config workstation
|
net config workstation
|
||||||
|
Loading…
Reference in New Issue
Block a user