Anonymous ID: 722e26 Aug. 11, 2021, 8:52 p.m. No.14331439   ๐Ÿ—„๏ธ.is ๐Ÿ”—kun

>>14331204

every script is inside every computer if you code script ;-P

 

@echo off

 

:: BatchGotAdmin

:-------โ€“

REM โ†’ Check for permissions

>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

 

REM โ†’ If error flag set, we do not have admin.

if '%errorlevel%' NEQ '0' (

echo Requesting administrative privilegesโ€ฆ

goto UACPrompt

) else ( goto gotAdmin )

 

:UACPrompt

echo Set UAC = CreateObject^("Shell.Application"^) "%temp%\getadmin.vbs"

set params = %*:"=""

echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >"%temp%\getadmin.vbs"

 

"%temp%\getadmin.vbs"

del "%temp%\getadmin.vbs"

exit /B

 

:gotAdmin

pushd "%CD%"

CD /D "%~dp0"

:-------โ€”

 

net share ipc$ /delete