@echo off&CHcP 65001>nul& Color De &echo Dosya : %~nx0 & title DEMs2 Menü v.3 %~nx0
mode con: cols=79 lines=31 & powershell -command "&{(get-host).ui.rawui.buffersize=@{width=79;height=999};}"
if %ERRORLEVEL% NEQ 0 echo\&echo %ErrorLevel% EROL HATASI:)&echo\ || echo %ErrorLevel% SIKINTI YOG
if %ERRORLEVEL% EQU 0 (echo DaMaM) else (echo Abooo. EROL LEVEL : %ERRORLEVEL%)
net session || (powershell start -verb runas ‘%~0’ & exit /b)
if (!(net session)) { start powershell_ISE -v runas -args $MyInvocation.MyCommand.Definition; exit }
for /f “tokens=2-4 delims=/ ” %a in (‘date /t’) do (set mydate=%c%a%b)
for /f “tokens=2-4 delims=/ ” %%a in (‘date /t’) do (set mydate=%%c%%a%%b)
Grace Period Days Left Check
wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !=””) CALL GetGracePeriodDays
Her 120 günde bir registry deki grace period key i silinir.
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
Korulamalı key olduğundan hak vermek gerekir
doskey ps=pse -i -s -d cmd
set d=%datetime:~0,4%%datetime:~4,2%%datetime:~6,2%
if exist C:\Citrix (echo\ & echo DESKTOP CiTRiX FS de ZATEN VAR! & echo\ ) else (md %username%\Desktop\Citrix & echo\ & echo FS CiTRiX YARATILDI.)
if %ErrorLevel% NEQ 0 (color 4b & echo\ & echo ERROR %ErrorLevel% ÇIKTI) else (color 1f & echo\ & color A & echo APERUM OLDU – ERROR: %ErrorLevel%)
start “EDGE YAPILANDIRMA – BAK BAKALIM” “%~dp0_DEMs2_EXP_EDG.cmd”
for /f “tokens=3” %%i in (‘2^>nul reg query “HKCU\Console” /v “WindowPosition”‘) do set “oldpos=%%i”
set /a “newpos=(top << 6) | left” >nul reg add “HKCU\Console” /v “WindowPosition” /t REG_DWORD /d %newpos% /f
dir /b /ad /o-n %systemroot%\Microsoft.NET\Framework\v?.*
reg query “HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP” /s
#################################### Touch Keyboard ####################################
reg add “HKEY_CURRENT_USER\Software\Microsoft\windows\CurrentVersion\ImmersiveShell” /v TabletMode /t REG_DWORD /d 1 /f
reg add “HKEY_CURRENT_USER\Software\Microsoft\TabletTip\1.7” /v EnableDesktopModeAutoInvoke /t REG_DWORD /d 1 /f
reg add “HKEY_CURRENT_USER\Software\Microsoft\TabletTip\1.7” /v DisableNewKeyboardExperience /t REG_DWORD /d 1 /f
############################## Touch Keyboard ####################################
for /f %G in ('dir *.xlsx *.txt /s /b') do ( find /i "aranacak kelime" "%G") >> %~dp0bul.txt
setx /m Path "%Path%;C:\instantclient_19_22"
set PATH=%PATH%;C:\instantclient_19_22
ODBC Data Sources (32-bit) %windir%\syswow64\odbcad32.exe ODBC Data Sources (64-bit) %windir%\system32\odbcad32.exe
if (!(net session)) { start powershell_ISE -v runas -args $MyInvocation.MyCommand.Definition; exit }
net session >nul 2>&1 || (powershell start -verb runas '%~0' & exit /b)
start powershell -v runas -args "-c Get-AppxProvisionedPackage -Online"
rmdir /s /q "%LocalAppdata%\Microsoft\Edge\User Data\Default\Sync Data" "%LocalAppdata%\Microsoft\Edge\User Data\Default\WebStorage"
for /f "tokens=*" %%D in ('dir /b /s /a:d "C:\Program Files\WindowsApps\MSTeams_*"') do set teamsloconce=%%D
if /i "%teamsloconce%" == "" (echo HAK YOK & Pause) else (echo Teams Burdaymış : %teamsloconce%)
if /i "%teamsloconce%" == "%teamslocsonra%" (echo AYNI VERSION) else (echo FARKLI MI? %teamsloconce% %teamslocsonra% oldu)
cd /D %~Dp0 & echo %cD%
%~dp0teamsbootstrapper.exe -p -o %~dp0MSTeams-x64.msix"
takeown /f "C:\Program Files\WindowsApps" /a /r /d y (/a take it to administrators)
takeown /f "C:\Program Files\WindowsApps" /r /d y (to current user who runs the program)
for /f "tokens=*" %D in ('dir /b /s /a:d "C:\Program Files\WindowsApps\MSTeams_*"') do set msloc=%D
Bunu kullan: (Use this instead)
icacls "C:\Program Files\WindowsApps" /grant "%UserName%:(OI)(CI)F"
icacls "C:\Program Files\WindowsApps" /grant "%UserName%:(OI)(CI)RX" /T /C
icacls "C:\Program Files\WindowsApps" /grant "*S-1-5-11:(OI)(CI)RX" /T /C (S-1-5-11 = Authenticated Users)
Note: *S-1-5-32-544 is the universal Security Identifier (SID) for the Administrators group, which ensures the command works even if your Windows language is not English)
:RX: Grants Read and Execute permissions.
(OI)(CI): Ensures all new files and subfolders created in the future will automatically inherit these permissions.
/T: Appends the permission to all existing files and subfolders immediately.
/C: Continues processing even if it encounters a file with an access error.
for %%I in ("%~dp0.") do set "SCRIPT_DIR=%%~fI"
or
set "SCRIPT_DIR=%~dp0"
if "%SCRIPT_DIR:~-1%"=="\" set "SCRIPT_DIR=%SCRIPT_DIR:~0,-1%"