Бат файл для запуска от имени системы
Цитата: --- НЛО --- от 06.06.2022, 00:23Всем привет, недавно написал бат файл для запуска от имени системы
Сделал ещё добавление в контекстное меню
!!!ВНИМАНИЕ!!!
1) На скрипт ругается Антивирус
2)Скрипт при установке в контекстное меню создаёт копию cmd под названием cmda и добавляя для неё [simple_tooltip content=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers']запуск от имени администратора [/simple_tooltip]В архиве лежит whoami.cmd для проверки запуска от имени системы из контекстного меню
А также простой запуск cmd от имени системы без добавление в контекст.меню
Ссылка
Всем привет, недавно написал бат файл для запуска от имени системы
Сделал ещё добавление в контекстное меню
!!!ВНИМАНИЕ!!!
1) На скрипт ругается Антивирус
2)Скрипт при установке в контекстное меню создаёт копию cmd под названием cmda и добавляя для неё запуск от имени администратора
В архиве лежит whoami.cmd для проверки запуска от имени системы из контекстного меню
А также простой запуск cmd от имени системы без добавление в контекст.меню
Ссылка
Цитата: XpucT от 06.06.2022, 00:31Привет 🖐
А если нужно запустить, например, реестр, то нужно идти к файлу regedit.exe?
Привет 🖐
А если нужно запустить, например, реестр, то нужно идти к файлу regedit.exe?
Цитата: --- НЛО --- от 06.06.2022, 00:39Цитата: XpucT от 06.06.2022, 00:31Привет
А если нужно запустить, например, реестр, то нужно идти к файлу regedit.exe?Доброй ночи
Увы это так, как бы я не старался изменить скрипт он выдавал ошибку, завтра попробую переделать если получится, то напишу сюда
Хотя может я не так всё понял, но как вы хотите чтобы запускался реестр от имени системы?, можно создать [simple_tooltip content='реестра']ярлык[/simple_tooltip] и кликая по нему нажать кнопку запустить имени системы
Цитата: XpucT от 06.06.2022, 00:31Привет
А если нужно запустить, например, реестр, то нужно идти к файлу regedit.exe?
Доброй ночи
Увы это так, как бы я не старался изменить скрипт он выдавал ошибку, завтра попробую переделать если получится, то напишу сюда
Хотя может я не так всё понял, но как вы хотите чтобы запускался реестр от имени системы?, можно создать ярлык и кликая по нему нажать кнопку запустить имени системы
Цитата: Vlado от 06.06.2022, 17:34Цитата: MSC от 06.06.2022, 00:23Всем привет, недавно написал бат файл для запуска от имени системы
Сделал ещё добавление в контекстное меню
!!!ВНИМАНИЕ!!!
1) На скрипт ругается Антивирус
2)Скрипт при установке в контекстное меню создаёт копию cmd под названием cmda и добавляя для неё [simple_tooltip content=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers']запуск от имени администратора [/simple_tooltip]В архиве лежит whoami.cmd для проверки запуска от имени системы из контекстного меню
А также простой запуск cmd от имени системы без добавление в контекст.меню
СсылкаПривет, здорово.
Есть RunAsTI, который позволяет также запускать regedit, cmd, exe, бат и все остальное от имени СИСТЕМЫ/TI
Смысл таков
Создается .bat файл@echo off rem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows) cd /d "%~dp0" rem Запуск .bat от имени TI if /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exit rem Далее любой код в батнике выполяется от имени СИСТЕМЫ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nul del /q 1.txt блаблабла pause exit /bЕсли нужны пункт к. меню , копируем RunAsTi.exe (в коде ниже TI.exe) в папку system32 и добавляем в контекстное меню рабочего стола такие пункты
[spoiler title=""]@echo off cd /d %~dp0 xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nul rem Добавляем пункт запуска от имени TI в .exe, .bat, .cmd reg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul[/spoiler]
Цитата: MSC от 06.06.2022, 00:23Всем привет, недавно написал бат файл для запуска от имени системы
Сделал ещё добавление в контекстное меню
!!!ВНИМАНИЕ!!!
1) На скрипт ругается Антивирус
2)Скрипт при установке в контекстное меню создаёт копию cmd под названием cmda и добавляя для неё запуск от имени администратораВ архиве лежит whoami.cmd для проверки запуска от имени системы из контекстного меню
А также простой запуск cmd от имени системы без добавление в контекст.меню
Ссылка
Привет, здорово.
Есть RunAsTI, который позволяет также запускать regedit, cmd, exe, бат и все остальное от имени СИСТЕМЫ/TI
Смысл таков
Создается .bat файл
@echo off rem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows) cd /d "%~dp0" rem Запуск .bat от имени TI if /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exit rem Далее любой код в батнике выполяется от имени СИСТЕМЫ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nul del /q 1.txt блаблабла pause exit /b
Если нужны пункт к. меню , копируем RunAsTi.exe (в коде ниже TI.exe) в папку system32 и добавляем в контекстное меню рабочего стола такие пункты
@echo off cd /d %~dp0 xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nul rem Добавляем пункт запуска от имени TI в .exe, .bat, .cmd reg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul
Цитата: --- НЛО --- от 06.06.2022, 19:49Цитата: Vlado от 06.06.2022, 17:34Цитата: MSC от 06.06.2022, 00:23Всем привет, недавно написал бат файл для запуска от имени системы
Сделал ещё добавление в контекстное меню
!!!ВНИМАНИЕ!!!
1) На скрипт ругается Антивирус
2)Скрипт при установке в контекстное меню создаёт копию cmd под названием cmda и добавляя для неё [simple_tooltip content=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers']запуск от имени администратора [/simple_tooltip]В архиве лежит whoami.cmd для проверки запуска от имени системы из контекстного меню
А также простой запуск cmd от имени системы без добавление в контекст.меню
СсылкаПривет, здорово.
Есть RunAsTI, который позволяет также запускать regedit, cmd, exe, бат и все остальное от имени СИСТЕМЫ/TI
Смысл таков
Создается .bat файл@echo offrem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows)cd /d "%~dp0"rem Запуск .bat от имени TIif /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exitrem Далее любой код в батнике выполяется от имени СИСТЕМЫreg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nulreg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nuldel /q 1.txtблаблаблаpauseexit /b@echo off rem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows) cd /d "%~dp0" rem Запуск .bat от имени TI if /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exit rem Далее любой код в батнике выполяется от имени СИСТЕМЫ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nul del /q 1.txt блаблабла pause exit /b@echo off rem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows) cd /d "%~dp0" rem Запуск .bat от имени TI if /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exit rem Далее любой код в батнике выполяется от имени СИСТЕМЫ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nul del /q 1.txt блаблабла pause exit /bЕсли нужны пункт к. меню , копируем RunAsTi.exe (в коде ниже TI.exe) в папку system32 и добавляем в контекстное меню рабочего стола такие пункты
[spoiler title=""]@echo offcd /d %~dp0xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nulrem Добавляем пункт запуска от имени TI в .exe, .bat, .cmdreg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul@echo off cd /d %~dp0 xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nul rem Добавляем пункт запуска от имени TI в .exe, .bat, .cmd reg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul@echo off cd /d %~dp0 xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nul rem Добавляем пункт запуска от имени TI в .exe, .bat, .cmd reg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul[/spoiler]
Добрый день
RunAsTI конечно хорошая программа(Сам пользуюсь PowerRun ), но без других программ в винде лучше, да и кто знает что может быть в программе.
Можно конечно мой код пересобрать, и другие варианты вписать
И ещё вопрос, почему у вас код находится в HKLM\SOFTWARE\Classes\DesktopBackground, он чем-то отличается от HKCR\DesktopBackground ?
Цитата: Vlado от 06.06.2022, 17:34Цитата: MSC от 06.06.2022, 00:23Всем привет, недавно написал бат файл для запуска от имени системы
Сделал ещё добавление в контекстное меню
!!!ВНИМАНИЕ!!!
1) На скрипт ругается Антивирус
2)Скрипт при установке в контекстное меню создаёт копию cmd под названием cmda и добавляя для неё запуск от имени администратораВ архиве лежит whoami.cmd для проверки запуска от имени системы из контекстного меню
А также простой запуск cmd от имени системы без добавление в контекст.меню
СсылкаПривет, здорово.
Есть RunAsTI, который позволяет также запускать regedit, cmd, exe, бат и все остальное от имени СИСТЕМЫ/TI
Смысл таков
Создается .bat файл@echo offrem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows)cd /d "%~dp0"rem Запуск .bat от имени TIif /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exitrem Далее любой код в батнике выполяется от имени СИСТЕМЫreg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nulreg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nuldel /q 1.txtблаблаблаpauseexit /b@echo off rem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows) cd /d "%~dp0" rem Запуск .bat от имени TI if /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exit rem Далее любой код в батнике выполяется от имени СИСТЕМЫ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nul del /q 1.txt блаблабла pause exit /b@echo off rem Переходим в место, откуда запускается батник (если RunAsTI не скопирован в папку Windows) cd /d "%~dp0" rem Запуск .bat от имени TI if /i not "%USERNAME%"=="SYSTEM" TI.exe "%~f0" %* & exit rem Далее любой код в батнике выполяется от имени СИСТЕМЫ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1" /f >nul reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\1543534543543543" /f >nul del /q 1.txt блаблабла pause exit /bЕсли нужны пункт к. меню , копируем RunAsTi.exe (в коде ниже TI.exe) в папку system32 и добавляем в контекстное меню рабочего стола такие пункты
Спойлер@echo offcd /d %~dp0xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nulrem Добавляем пункт запуска от имени TI в .exe, .bat, .cmdreg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nulreg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nulreg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nulreg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nulreg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul@echo off cd /d %~dp0 xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nul rem Добавляем пункт запуска от имени TI в .exe, .bat, .cmd reg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul@echo off cd /d %~dp0 xcopy "TI.exe" "%SystemRoot%\system32" /q /y >nul rem Добавляем пункт запуска от имени TI в .exe, .bat, .cmd reg add "HKCR\exefile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\exefile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\batfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Description" /t reg_SZ /d "Run as TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller" /v "MUIVerb" /t reg_SZ /d "Запуск от имени TrustedInstaller" /f >nul reg add "HKCR\cmdfile\shell\runastrustedinstaller\command" /v "" /t reg_SZ /d "TI.exe \"%%1\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Icon" /t reg_SZ /d "imageres.dll,1" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "MUIVerb" /t reg_SZ /d "TI..." /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "Position" /t reg_SZ /d "Top" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "SeparatorAfter" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller" /v "subcommands" /t reg_SZ /d "" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /ve /t reg_SZ /d "Редактор реестра" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit" /v "Icon" /t reg_SZ /d "regedit.exe,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\regEdit\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\regedit.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /ve /t reg_SZ /d "Командная строка" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD" /v "Icon" /t reg_SZ /d "imageres.dll,262" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\CMD\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\cmd.exe\"" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /ve /t reg_SZ /d "Системные службы" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services" /v "Icon" /t reg_SZ /d "filemgmt.dll,0" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Services\command" /ve /t reg_SZ /d "TI.exe C:\Windows\System32\cmd.exe /c start services.msc && msg * /TIME:2 Службы запущены от имени TrustedInstaller. & taskkill /f /im cmd.exe" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /ve /t reg_SZ /d "Диспетчер задач" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr" /v "Icon" /t reg_SZ /d "imageres.dll,144" /f >nul reg add "HKLM\SOFTWARE\Classes\DesktopBackground\Shell\TrustedInstaller\Shell\Taskmgr\command" /ve /t reg_SZ /d "TI.exe \"C:\Windows\system32\taskmgr.exe\"" /f >nul
Добрый день
RunAsTI конечно хорошая программа(Сам пользуюсь PowerRun ), но без других программ в винде лучше, да и кто знает что может быть в программе.
Можно конечно мой код пересобрать, и другие варианты вписать
И ещё вопрос, почему у вас код находится в HKLM\SOFTWARE\Classes\DesktopBackground, он чем-то отличается от HKCR\DesktopBackground ?
Цитата: Vlado от 08.06.2022, 15:49Цитата: MSC от 06.06.2022, 19:49Добрый день
Доброго.
RunAsTI конечно хорошая программа(Сам пользуюсь PowerRun )
PowerRun чуть дольше соображает и выполняет команды в .BAT
но без других программ в винде лучше, да и кто знает что может быть в программе.
Пользуюсь уже долгое время и коллеги, проблем нет, обычная консоль CMD.
И ещё вопрос, почему у вас код находится в HKLM\SOFTWARE\Classes\DesktopBackground, он чем-то отличается от HKCR\DesktopBackground ?
Можно добавлять сразу в HKCR. Информация все равно дублируется в HKLM.
Цитата: MSC от 06.06.2022, 19:49
Добрый день
Доброго.
RunAsTI конечно хорошая программа(Сам пользуюсь PowerRun )
PowerRun чуть дольше соображает и выполняет команды в .BAT
но без других программ в винде лучше, да и кто знает что может быть в программе.
Пользуюсь уже долгое время и коллеги, проблем нет, обычная консоль CMD.
И ещё вопрос, почему у вас код находится в HKLM\SOFTWARE\Classes\DesktopBackground, он чем-то отличается от HKCR\DesktopBackground ?
Можно добавлять сразу в HKCR. Информация все равно дублируется в HKLM.
Цитата: En32 от 15.01.2023, 12:59Всем привет, недавно я нашёл этот скрипт и с новыми силами я полностью его переписал из-за чего
Стало доступно:
Если просто запустить файл то откроется cmd
Запуск любого файла как аргумент
Удаление(убийство) окна cmd на заднем плане(в принципе костыль)
Также можно запустить любой батник просто перенеся на файл запуска TI.bat(не поддерживает пробелы в словах и путях)
В будущем:
[simple_tooltip content=улучшить']Исправить[/simple_tooltip] костыль убийства окна
Добавить поддержку пробелов в словах и путях
Всем привет, недавно я нашёл этот скрипт и с новыми силами я полностью его переписал из-за чего
Стало доступно:
Если просто запустить файл то откроется cmd
Запуск любого файла как аргумент
Удаление(убийство) окна cmd на заднем плане(в принципе костыль)
Также можно запустить любой батник просто перенеся на файл запуска TI.bat(не поддерживает пробелы в словах и путях)
В будущем:
Исправить костыль убийства окна
Добавить поддержку пробелов в словах и путях
Цитата: En32 от 16.01.2023, 23:25Добрый вечер, наконец мучаясь целый день с моим скриптом.
Я наконец смог Добавить поддержку пробелов в словах и путях
Всё остальное осталось на своих местах
Прошу проверьте пожалуйста этот скрипт кому не лень.
!!!ВНИМАНИЕ!!!
На скрипт ругается АнтивирусВ будущем:
Исправить костыль убийства окна
Добрый вечер, наконец мучаясь целый день с моим скриптом.
Я наконец смог Добавить поддержку пробелов в словах и путях
Всё остальное осталось на своих местах
Прошу проверьте пожалуйста этот скрипт кому не лень.
!!!ВНИМАНИЕ!!!
На скрипт ругается Антивирус
В будущем:
Исправить костыль убийства окна
Цитата: Mikhail от 17.01.2023, 02:05Добрый🖐.
Вроде работает, но мне не удобно, TI от Vlado, которым где-то делился, не помню где =), удобно, просто и понятно.
Добрый🖐.
Вроде работает, но мне не удобно, TI от Vlado, которым где-то делился, не помню где =), удобно, просто и понятно.