Compare commits

..
3 Commits
Author SHA1 Message Date
dyoder 01c06ad64b removed 2024-12-06 11:12:56 -05:00
dyoder 38d0e87a2e initial commit 2024-12-06 11:12:13 -05:00
dyoder 5bc1437398 initial commit 2024-12-06 11:11:51 -05:00
3 changed files with 47 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
@echo off
if /I %0 EQU "%~dpnx0" (set LAUNCH=1) else (set LAUNCH=0)
set PROP=ExcludeExplicitO365Endpoint
set KEY=Microsoft\Office\16.0\Outlook\AutoDiscover
echo Disabling Office 365 AutoDiscover...
reg add HKCU\Software\%KEY% /v %PROP% /t REG_DWORD /d 1 /f /reg:32 >nul 2>nul
reg add HKCU\Software\Policies\%KEY% /v %PROP% /t REG_DWORD /d 1 /f /reg:32 >nul 2>nul
reg add HKCU\Software\%KEY% /v %PROP% /t REG_DWORD /d 1 /f /reg:64 >nul 2>nul
reg add HKCU\Software\Policies\%KEY% /v %PROP% /t REG_DWORD /d 1 /f /reg:64 >nul 2>nul
if %ERRORLEVEL% GTR 0 (
if %LAUNCH% GTR 0 color 0e
echo ERROR: This script failed to run. Please make sure to Run As Administrator
reg delete HKCU\Software\%KEY% /v %PROP% /f /reg:32 >nul 2>nul
reg delete HKCU\Software\Policies\%KEY% /v %PROP% /f /reg:32 >nul 2>nul
reg delete HKCU\Software\%KEY% /v %PROP% /f /reg:64 >nul 2>nul
reg delete HKCU\Software\Policies\%KEY% /v %PROP% /f /reg:64 >nul 2>nul
echo Changes have been reverted.
if %LAUNCH% GTR 0 pause
goto :EOF
)
echo Successfully disabled Office 365 AutoDiscover!
echo Please restart your comptuer.
if %LAUNCH% GTR 0 pause
-1
View File
@@ -1 +0,0 @@
[Microsoft.Win32.Registry]::SetValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Outlook\AutoDiscover","ExcludeExplicitO365Endpoint",1,[Microsoft.Win32.RegistryValueKind]::DWord)
+24
View File
@@ -0,0 +1,24 @@
@echo off
if /I %0 EQU "%~dpnx0" (set LAUNCH=1) else (set LAUNCH=0)
set PROP=HideNewOutlookToggle
set KEY=Microsoft\Office\16.0\Outlook\Options\General
set ARGS=/v %PROP% /t REG_DWORD /d 1 /f
echo Disabling New Outlook toggle...
reg add HKCU\Software\%KEY% %ARGS% /reg:32 >nul 2>nul
reg add HKCU\Software\Policies\%KEY% %ARGS% /reg:32 >nul 2>nul
reg add HKCU\Software\%KEY% %ARGS% /reg:64 >nul 2>nul
reg add HKCU\Software\Policies\%KEY% %ARGS% /reg:64 >nul 2>nul
if %ERRORLEVEL% GTR 0 (
if %LAUNCH% GTR 0 color 0e
echo ERROR: This script failed to run. Please make sure to Run As Administrator
reg delete HKCU\Software\%KEY% /v %PROP% /f /reg:32 >nul 2>nul
reg delete HKCU\Software\Policies\%KEY% /v %PROP% /f /reg:32 >nul 2>nul
reg delete HKCU\Software\%KEY% /v %PROP% /f /reg:64 >nul 2>nul
reg delete HKCU\Software\Policies\%KEY% /v %PROP% /f /reg:64 >nul 2>nul
echo Changes have been reverted.
if %LAUNCH% GTR 0 pause
goto :EOF
)
echo Successfully disabled New Outlook toggle!
echo Please restart your comptuer.
if %LAUNCH% GTR 0 pause