.
This commit is contained in:
parent
c000f093dc
commit
de9700e31f
@ -100,7 +100,7 @@ powershell -Command ^
|
|||||||
echo.
|
echo.
|
||||||
|
|
||||||
rem uninstall some Apps (but keep the store) ...
|
rem uninstall some Apps (but keep the store) ...
|
||||||
powershell uninstall-apps.ps1
|
powershell -Command .\uninstall-apps.ps1
|
||||||
|
|
||||||
echo setting PATH variable (all users) ...
|
echo setting PATH variable (all users) ...
|
||||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ^
|
||||||
@ -111,7 +111,7 @@ reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Env
|
|||||||
|
|
||||||
echo cleanup startmenu ...
|
echo cleanup startmenu ...
|
||||||
call cleanup-startmenu.cmd
|
call cleanup-startmenu.cmd
|
||||||
powershell -Command cleanup-tiles.ps1
|
powershell -Command .\cleanup-tiles.ps1
|
||||||
|
|
||||||
rem install openshell (fuck you microsoft) ...
|
rem install openshell (fuck you microsoft) ...
|
||||||
call install-openshell.cmd
|
call install-openshell.cmd
|
||||||
|
@ -54,7 +54,7 @@ if EXIST %SOURCES%\install_FINAL.esd (
|
|||||||
|
|
||||||
for %%P in (tools software scripts) do (
|
for %%P in (tools software scripts) do (
|
||||||
if EXIST %%P (
|
if EXIST %%P (
|
||||||
rd /S /Q %USBDRIVE%\%%P
|
rd /S /Q %USBDRIVE%\%%P 1>nul 2>nul
|
||||||
echo copying folder %%P to drive %USBDRIVE% ...
|
echo copying folder %%P to drive %USBDRIVE% ...
|
||||||
robocopy %%P %USBDRIVE%\%%P /MIR /256 /NJH /NFL /NDL
|
robocopy %%P %USBDRIVE%\%%P /MIR /256 /NJH /NFL /NDL
|
||||||
)
|
)
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
rem kill system processes and wait a short time ...
|
rem kill system processes and wait a short time ...
|
||||||
taskkill /f /im StartMenuExperienceHost.exe
|
taskkill /f /im StartMenuExperienceHost.exe
|
||||||
taskkill /f /im shellexperiencehost.exe
|
taskkill /f /im shellexperiencehost.exe
|
||||||
taskkill /f /im explorer.exe
|
taskkill /f /im explorer.exe
|
||||||
|
|
||||||
ping 127.0.0.1 -n 3 >nul 2>nul
|
ping 127.0.0.1 -n 3 >nul 2>nul
|
||||||
|
|
||||||
rem kill dead entries in start menu and kill old live tiles ...
|
rem kill dead entries in start menu and kill old live tiles ...
|
||||||
@echo on
|
@echo on
|
||||||
del %LOCALAPPDATA%\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\* /q
|
del %LOCALAPPDATA%\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\* /q
|
||||||
del %LOCALAPPDATA%\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempState\* /q
|
del %LOCALAPPDATA%\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempState\* /q
|
||||||
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\StateStore" /V ResetCache /T REG_DWORD /D 1 /F
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\StateStore" /V ResetCache /T REG_DWORD /D 1 /F
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem start explorer again ...
|
rem start explorer again ...
|
||||||
ping 127.0.0.1 -n 1 >nul 2>nul
|
ping 127.0.0.1 -n 1 >nul 2>nul
|
||||||
start explorer
|
start explorer
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,63 +1,63 @@
|
|||||||
#
|
#
|
||||||
# this script loads a tile layout for the
|
# this script loads a tile layout for the
|
||||||
# start menu with NO tiles at all!
|
# start menu with NO tiles at all!
|
||||||
# ( = deletes all tiles )
|
# ( = deletes all tiles )
|
||||||
#
|
#
|
||||||
|
|
||||||
$LAYOUT='C:\Windows\StartLayout.xml'
|
$LAYOUT='C:\Windows\StartLayout.xml'
|
||||||
|
|
||||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||||
|
|
||||||
echo "delete layout file if it already exists ..."
|
echo "delete layout file if it already exists ..."
|
||||||
If(Test-Path $LAYOUT) {
|
If(Test-Path $LAYOUT) {
|
||||||
Remove-Item $LAYOUT
|
Remove-Item $LAYOUT
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "create a blank layout file [ $LAYOUT ] ..."
|
echo "create a blank layout file [ $LAYOUT ] ..."
|
||||||
echo "<LayoutModificationTemplate xmlns:defaultlayout=""http://schemas.microsoft.com/Start/2014/FullDefaultLayout"" xmlns:start=""http://schemas.microsoft.com/Start/2014/StartLayout"" Version=""1"" xmlns=""http://schemas.microsoft.com/Start/2014/LayoutModification"">" > $LAYOUT
|
echo "<LayoutModificationTemplate xmlns:defaultlayout=""http://schemas.microsoft.com/Start/2014/FullDefaultLayout"" xmlns:start=""http://schemas.microsoft.com/Start/2014/StartLayout"" Version=""1"" xmlns=""http://schemas.microsoft.com/Start/2014/LayoutModification"">" > $LAYOUT
|
||||||
echo " <LayoutOptions StartTileGroupCellWidth=""6"" />" >> $LAYOUT
|
echo " <LayoutOptions StartTileGroupCellWidth=""6"" />" >> $LAYOUT
|
||||||
echo " <DefaultLayoutOverride>" >> $LAYOUT
|
echo " <DefaultLayoutOverride>" >> $LAYOUT
|
||||||
echo " <StartLayoutCollection>" >> $LAYOUT
|
echo " <StartLayoutCollection>" >> $LAYOUT
|
||||||
echo " <defaultlayout:StartLayout GroupCellWidth=""6"" />" >> $LAYOUT
|
echo " <defaultlayout:StartLayout GroupCellWidth=""6"" />" >> $LAYOUT
|
||||||
echo " </StartLayoutCollection>" >> $LAYOUT
|
echo " </StartLayoutCollection>" >> $LAYOUT
|
||||||
echo " </DefaultLayoutOverride>" >> $LAYOUT
|
echo " </DefaultLayoutOverride>" >> $LAYOUT
|
||||||
echo "</LayoutModificationTemplate>" >> $LAYOUT
|
echo "</LayoutModificationTemplate>" >> $LAYOUT
|
||||||
|
|
||||||
$regAliases = @("HKLM", "HKCU")
|
$regAliases = @("HKLM", "HKCU")
|
||||||
|
|
||||||
# assign the start layout and force it to apply with
|
# assign the start layout and force it to apply with
|
||||||
# "LockedStartLayout" at both the machine and user level ...
|
# "LockedStartLayout" at both the machine and user level ...
|
||||||
echo "assign the start layout AND apply it ..."
|
echo "assign the start layout AND apply it ..."
|
||||||
foreach ($regAlias in $regAliases) {
|
foreach ($regAlias in $regAliases) {
|
||||||
$basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
|
$basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
|
||||||
$keyPath = $basePath + "\Explorer"
|
$keyPath = $basePath + "\Explorer"
|
||||||
IF(!(Test-Path -Path $keyPath)) {
|
IF(!(Test-Path -Path $keyPath)) {
|
||||||
New-Item -Path $basePath -Name "Explorer"
|
New-Item -Path $basePath -Name "Explorer"
|
||||||
}
|
}
|
||||||
Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 1
|
Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 1
|
||||||
Set-ItemProperty -Path $keyPath -Name "StartLayoutFile" -Value "$LAYOUT"
|
Set-ItemProperty -Path $keyPath -Name "StartLayoutFile" -Value "$LAYOUT"
|
||||||
}
|
}
|
||||||
|
|
||||||
# restart Explorer, open the start menu (necessary to load the new layout),
|
# restart Explorer, open the start menu (necessary to load the new layout),
|
||||||
# and give it a few seconds to process ...
|
# and give it a few seconds to process ...
|
||||||
Start-Sleep -s 3
|
Start-Sleep -s 3
|
||||||
echo "restart explorer ..."
|
echo "restart explorer ..."
|
||||||
Stop-Process -name explorer
|
Stop-Process -name explorer
|
||||||
Start-Sleep -s 3
|
Start-Sleep -s 3
|
||||||
$wshell = New-Object -ComObject wscript.shell; $wshell.SendKeys('^{ESCAPE}')
|
$wshell = New-Object -ComObject wscript.shell; $wshell.SendKeys('^{ESCAPE}')
|
||||||
Start-Sleep -s 3
|
Start-Sleep -s 3
|
||||||
|
|
||||||
# enable the ability to pin items again by disabling "LockedStartLayout" ...
|
# enable the ability to pin items again by disabling "LockedStartLayout" ...
|
||||||
foreach ($regAlias in $regAliases) {
|
foreach ($regAlias in $regAliases) {
|
||||||
$basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
|
$basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
|
||||||
$keyPath = $basePath + "\Explorer"
|
$keyPath = $basePath + "\Explorer"
|
||||||
Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0
|
Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# restart Explorer and delete the layout file ...
|
# restart Explorer and delete the layout file ...
|
||||||
echo "restart explorer ..."
|
echo "restart explorer ..."
|
||||||
Stop-Process -name explorer
|
Stop-Process -name explorer
|
||||||
Remove-Item $LAYOUT
|
Remove-Item $LAYOUT
|
||||||
|
|
||||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo disabling autologon for admin ...
|
echo disabling autologon for admin ...
|
||||||
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f
|
||||||
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f
|
||||||
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set EXE=..\software\F-SecureNetworkInstaller-AV_AVTR20F930_.exe
|
set EXE=..\software\F-SecureNetworkInstaller-AV_AVTR20F930_.exe
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo installing F-Secure Antivirus ...
|
echo installing F-Secure Antivirus ...
|
||||||
%EXE% --silent
|
%EXE% --silent
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set SOURCE=icons
|
set SOURCE=icons
|
||||||
set TARGET=c:\Users\Public\Desktop
|
set TARGET=c:\Users\Public\Desktop
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo copying desktop icons ...
|
echo copying desktop icons ...
|
||||||
xcopy /CDI /HERBY %SOURCE% %TARGET%
|
xcopy /CDI /HERBY %SOURCE% %TARGET%
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,64 +1,64 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set CONF=deploy\firefox
|
set CONF=deploy\firefox
|
||||||
set SCRIPTS=..\..\scripts
|
set SCRIPTS=..\..\scripts
|
||||||
set SOFTWARE=..\software\firefox
|
set SOFTWARE=..\software\firefox
|
||||||
|
|
||||||
set MSI=Firefox_Setup_83.0b9.msi
|
set MSI=Firefox_Setup_83.0b9.msi
|
||||||
set FIREFOXBASE="C:\Program Files\Mozilla Firefox"
|
set FIREFOXBASE="C:\Program Files\Mozilla Firefox"
|
||||||
|
|
||||||
set BADGERFILE=%SOFTWARE%\privacy_badger-2020.12.10.xpi
|
set BADGERFILE=%SOFTWARE%\privacy_badger-2020.12.10.xpi
|
||||||
set BADGERTARGET=jid1-MnnxcxisBPnSXQ@jetpack.xpi
|
set BADGERTARGET=jid1-MnnxcxisBPnSXQ@jetpack.xpi
|
||||||
|
|
||||||
set UBLOCKFILE=%SOFTWARE%\ublock_origin-1.32.0.xpi
|
set UBLOCKFILE=%SOFTWARE%\ublock_origin-1.32.0.xpi
|
||||||
set UBLOCKTARGET=uBlock0@raymondhill.net.xpi
|
set UBLOCKTARGET=uBlock0@raymondhill.net.xpi
|
||||||
|
|
||||||
set PASSWORD1FILE=%SOFTWARE%\1password-1.22.3.xpi
|
set PASSWORD1FILE=%SOFTWARE%\1password-1.22.3.xpi
|
||||||
set PASSWORD1TARGET={d634138d-c276-4fc8-924b-40a0ea21d284}.xpi
|
set PASSWORD1TARGET={d634138d-c276-4fc8-924b-40a0ea21d284}.xpi
|
||||||
|
|
||||||
set BITWARDENFILE=%SOFTWARE%\bitwarden-1.47.1.xpi
|
set BITWARDENFILE=%SOFTWARE%\bitwarden-1.47.1.xpi
|
||||||
set BITWARDENTARGET={446900e4-71c2-419f-a6a7-df9c091e268b}.xpi
|
set BITWARDENTARGET={446900e4-71c2-419f-a6a7-df9c091e268b}.xpi
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
cd %SOFTWARE%
|
cd %SOFTWARE%
|
||||||
@echo on
|
@echo on
|
||||||
msiexec /i %MSI% /passive
|
msiexec /i %MSI% /passive
|
||||||
@echo off
|
@echo off
|
||||||
cd %SCRIPTS%
|
cd %SCRIPTS%
|
||||||
|
|
||||||
rem copy config ...
|
rem copy config ...
|
||||||
copy /Y %CONF%\local-settings.js %FIREFOXBASE%\defaults\pref
|
copy /Y %CONF%\local-settings.js %FIREFOXBASE%\defaults\pref
|
||||||
copy /Y %CONF%\mozilla.cfg %FIREFOXBASE%
|
copy /Y %CONF%\mozilla.cfg %FIREFOXBASE%
|
||||||
|
|
||||||
echo disabling FireFox updates (all users) ...
|
echo disabling FireFox updates (all users) ...
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^
|
||||||
/v DisableAppUpdate ^
|
/v DisableAppUpdate ^
|
||||||
/t REG_DWORD ^
|
/t REG_DWORD ^
|
||||||
/d 1 ^
|
/d 1 ^
|
||||||
/f
|
/f
|
||||||
|
|
||||||
echo enabling FireFox Bookmarks-bar for all users ...
|
echo enabling FireFox Bookmarks-bar for all users ...
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^
|
||||||
/v DisplayBookmarksToolbar ^
|
/v DisplayBookmarksToolbar ^
|
||||||
/t REG_DWORD ^
|
/t REG_DWORD ^
|
||||||
/d 1 ^
|
/d 1 ^
|
||||||
/f
|
/f
|
||||||
|
|
||||||
echo creating extensions directory ...
|
echo creating extensions directory ...
|
||||||
mkdir %FIREFOXBASE%\distribution\extensions 1>nul 2>nul
|
mkdir %FIREFOXBASE%\distribution\extensions 1>nul 2>nul
|
||||||
|
|
||||||
echo installing badger(eff) to fight internet bullshit ...
|
echo installing badger(eff) to fight internet bullshit ...
|
||||||
copy /Y %BADGERFILE% %FIREFOXBASE%\distribution\extensions\%BADGERTARGET%
|
copy /Y %BADGERFILE% %FIREFOXBASE%\distribution\extensions\%BADGERTARGET%
|
||||||
|
|
||||||
echo installing uBlock to fight even more internet bullshit ...
|
echo installing uBlock to fight even more internet bullshit ...
|
||||||
copy /Y %UBLOCKFILE% %FIREFOXBASE%\distribution\extensions\%UBLOCKTARGET%
|
copy /Y %UBLOCKFILE% %FIREFOXBASE%\distribution\extensions\%UBLOCKTARGET%
|
||||||
|
|
||||||
echo installing 1Password plugin ...
|
echo installing 1Password plugin ...
|
||||||
copy /Y %PASSWORD1FILE% %FIREFOXBASE%\distribution\extensions\%PASSWORD1TARGET%
|
copy /Y %PASSWORD1FILE% %FIREFOXBASE%\distribution\extensions\%PASSWORD1TARGET%
|
||||||
|
|
||||||
echo installing Bitwarden plugin ...
|
echo installing Bitwarden plugin ...
|
||||||
copy /Y %BITWARDENFILE% %FIREFOXBASE%\distribution\extensions\%BITWARDENTARGET%
|
copy /Y %BITWARDENFILE% %FIREFOXBASE%\distribution\extensions\%BITWARDENTARGET%
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set CONFIG=install-git.txt
|
set CONFIG=install-git.txt
|
||||||
set EXE=..\software\Git-2.29.0-64-bit.exe
|
set EXE=..\software\Git-2.29.0-64-bit.exe
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo killing ssh processes...
|
echo killing ssh processes...
|
||||||
taskkill /F /IM ssh-agent.exe
|
taskkill /F /IM ssh-agent.exe
|
||||||
taskkill /F /IM ssh.exe
|
taskkill /F /IM ssh.exe
|
||||||
|
|
||||||
echo installing GIT ...
|
echo installing GIT ...
|
||||||
%EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
%EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
[Setup]
|
[Setup]
|
||||||
Lang=default
|
Lang=default
|
||||||
Dir=c:\tools\git
|
Dir=c:\tools\git
|
||||||
Group=Git
|
Group=Git
|
||||||
NoIcons=1
|
NoIcons=1
|
||||||
SetupType=default
|
SetupType=default
|
||||||
Components=gitlfs
|
Components=gitlfs
|
||||||
Tasks=
|
Tasks=
|
||||||
EditorOption=CustomEditor
|
EditorOption=CustomEditor
|
||||||
CustomEditorPath=c:\tools\vim.exe
|
CustomEditorPath=c:\tools\vim.exe
|
||||||
DefaultBranchOption=
|
DefaultBranchOption=
|
||||||
PathOption=CmdTools
|
PathOption=CmdTools
|
||||||
SSHOption=OpenSSH
|
SSHOption=OpenSSH
|
||||||
TortoiseOption=false
|
TortoiseOption=false
|
||||||
CURLOption=OpenSSL
|
CURLOption=OpenSSL
|
||||||
CRLFOption=CRLFCommitAsIs
|
CRLFOption=CRLFCommitAsIs
|
||||||
BashTerminalOption=ConHost
|
BashTerminalOption=ConHost
|
||||||
GitPullBehaviorOption=Merge
|
GitPullBehaviorOption=Merge
|
||||||
UseCredentialManager=Disabled
|
UseCredentialManager=Disabled
|
||||||
PerformanceTweaksFSCache=Disabled
|
PerformanceTweaksFSCache=Disabled
|
||||||
EnableSymlinks=Disabled
|
EnableSymlinks=Disabled
|
||||||
EnablePseudoConsoleSupport=Disabled
|
EnablePseudoConsoleSupport=Disabled
|
||||||
|
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set SOURCE=deploy/logon.cmd
|
set SOURCE=deploy/logon.cmd
|
||||||
set TOOLS=c:\tools
|
set TOOLS=c:\tools
|
||||||
set TARGET="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup"
|
set TARGET="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup"
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
rem cleanup ...
|
rem cleanup ...
|
||||||
del /Q /F %TARGET%\logon* 1>nul 2>nul
|
del /Q /F %TARGET%\logon* 1>nul 2>nul
|
||||||
del /Q /F %TOOLS%\logon.cmd 1>nul 2>nul
|
del /Q /F %TOOLS%\logon.cmd 1>nul 2>nul
|
||||||
|
|
||||||
echo copy logon.cmd to %TOOLS% ...
|
echo copy logon.cmd to %TOOLS% ...
|
||||||
copy /Y %SOURCE% %TOOLS%
|
copy /Y %SOURCE% %TOOLS%
|
||||||
|
|
||||||
echo create link for logon script...
|
echo create link for logon script...
|
||||||
mklink %TARGET%\logon.cmd %TOOLS%\logon.cmd
|
mklink %TARGET%\logon.cmd %TOOLS%\logon.cmd
|
||||||
|
|
||||||
echo create link on desktop...
|
echo create link on desktop...
|
||||||
del /Q /F "%USERPROFILE%\Desktop\Autostart*" 1>nul 2>nul
|
del /Q /F "%USERPROFILE%\Desktop\Autostart*" 1>nul 2>nul
|
||||||
rmdir /Q "%USERPROFILE%\Desktop\Autostart" 1>nul 2>nul
|
rmdir /Q "%USERPROFILE%\Desktop\Autostart" 1>nul 2>nul
|
||||||
mklink /D "%USERPROFILE%\Desktop\Autostart" %TARGET%
|
mklink /D "%USERPROFILE%\Desktop\Autostart" %TARGET%
|
||||||
|
|
||||||
echo execute logon script...
|
echo execute logon script...
|
||||||
call %TARGET%\logon.cmd
|
call %TARGET%\logon.cmd
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set SCRIPTS=..\scripts
|
set SCRIPTS=..\scripts
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
|
||||||
set EXE=OpenShellSetup_4_4_160.exe
|
set EXE=OpenShellSetup_4_4_160.exe
|
||||||
set MSI=OpenShellSetup64_4_4_160.msi
|
set MSI=OpenShellSetup64_4_4_160.msi
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
cd %SOFTWARE%
|
cd %SOFTWARE%
|
||||||
@echo on
|
@echo on
|
||||||
%EXE% extract64
|
%EXE% extract64
|
||||||
msiexec /i %MSI% ADDLOCAL=StartMenu,ClassicExplorer /passive
|
msiexec /i %MSI% ADDLOCAL=StartMenu,ClassicExplorer /passive
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem cleanup ...
|
rem cleanup ...
|
||||||
del /Q %MSI% 1>nul 2>nul
|
del /Q %MSI% 1>nul 2>nul
|
||||||
cd %SCRIPTS
|
cd %SCRIPTS%
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo disable hibernate ...
|
echo disable hibernate ...
|
||||||
powercfg -H off
|
powercfg -H off
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set TARGET=tweaks
|
set TARGET=tweaks
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
IF EXIST "%TARGET%\*.reg" (
|
IF EXIST "%TARGET%\*.reg" (
|
||||||
FOR /F "tokens=*" %%A IN ('DIR /B "%TARGET%\*.reg"') DO (
|
FOR /F "tokens=*" %%A IN ('DIR /B "%TARGET%\*.reg"') DO (
|
||||||
echo "%TARGET%\%%A"
|
echo "%TARGET%\%%A"
|
||||||
regedit /S "%TARGET%\%%A"
|
regedit /S "%TARGET%\%%A"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
# REMOVE all applications except the Store ...
|
# REMOVE all applications except the Store ...
|
||||||
|
|
||||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||||
|
|
||||||
$ErrorActionPreference = "SilentlyContinue"
|
$ErrorActionPreference = "SilentlyContinue"
|
||||||
|
|
||||||
# $progressPreference = 'SilentlyContinue'
|
# $progressPreference = 'SilentlyContinue'
|
||||||
Get-AppxPackage -AllUsers |
|
Get-AppxPackage -AllUsers |
|
||||||
where-object {$_.name -notlike "*store*"} |
|
where-object {$_.name -notlike "*store*"} |
|
||||||
Remove-AppxPackage
|
Remove-AppxPackage
|
||||||
Get-AppxProvisionedPackage -online |
|
Get-AppxProvisionedPackage -online |
|
||||||
where-object {$_.name -notlike "*store*"} |
|
where-object {$_.name -notlike "*store*"} |
|
||||||
Remove-AppxProvisionedPackage -online
|
Remove-AppxProvisionedPackage -online
|
||||||
|
|
||||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||||
|
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set EDGEROOT="C:\Program Files (x86)\Microsoft\Edge"
|
set EDGEROOT="C:\Program Files (x86)\Microsoft\Edge"
|
||||||
set INSTALLER=Application\8*\Installer
|
set EDGEUPDATE="C:\Program Files (x86)\Microsoft\EdgeUpdate"
|
||||||
|
set INSTALLER=Application\8*\Installer
|
||||||
echo ####### %0 #######
|
|
||||||
|
echo ####### %0 #######
|
||||||
%EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall
|
|
||||||
rd /S /Q %EDGEROOT%
|
%EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall
|
||||||
|
rd /S /Q %EDGEROOT% 1>nul 2>nul
|
||||||
echo ####### %0 #######
|
rd /S /Q %EDGEUPDATE% 1>nul 2>nul
|
||||||
|
|
||||||
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set x86=%SYSTEMROOT%\System32\OneDriveSetup.exe
|
set x86=%SYSTEMROOT%\System32\OneDriveSetup.exe
|
||||||
set x64=%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe
|
set x64=%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo KILLING OneDrive ...
|
echo KILLING OneDrive ...
|
||||||
taskkill /f /im OneDrive.exe > NUL 2>&1
|
taskkill /f /im OneDrive.exe > NUL 2>&1
|
||||||
ping 127.0.0.1 -n 5 > NUL 2>&1
|
ping 127.0.0.1 -n 5 > NUL 2>&1
|
||||||
|
|
||||||
echo UNINSTALLING OneDrive ...
|
echo UNINSTALLING OneDrive ...
|
||||||
if exist %x64% (
|
if exist %x64% (
|
||||||
%x64% /uninstall
|
%x64% /uninstall
|
||||||
) else (
|
) else (
|
||||||
%x86% /uninstall
|
%x86% /uninstall
|
||||||
)
|
)
|
||||||
ping 127.0.0.1 -n 5 > NUL 2>&1
|
ping 127.0.0.1 -n 5 > NUL 2>&1
|
||||||
|
|
||||||
echo CLEANUP OneDrive ...
|
echo CLEANUP OneDrive ...
|
||||||
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
|
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
|
||||||
rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
|
rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
|
||||||
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
|
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
|
||||||
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
|
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
|
||||||
|
|
||||||
echo remove OneDrive from explorer ...
|
echo remove OneDrive from explorer ...
|
||||||
reg DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
|
reg DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
|
||||||
reg DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
|
reg DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
|
||||||
reg DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f > NUL 2>&1
|
reg DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f > NUL 2>&1
|
||||||
reg DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f > NUL 2>&1
|
reg DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f > NUL 2>&1
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user