| |
| Apire il blocco note.. (se non sapete come fare fate start-esegui-scrivete: notepad e ok)... una volta fatto inseriteci questo codice: CODICE @echo off setlocal set asn= :: undefine the %asn% environment variable set /p asn= Do you still want to be admin (Y/N). then press “enter” when your done. if {%asn%}=={N} goto :end if {%asn%}=={n} goto :end cls set asn= :: undefine the %user% environment variable :: undefine the %pass% environment variable set /p user= enter your admin name then press enter:
set /p user= enter your admin username then press enter: if {%pass%}=={} goto :Misspass :con @echo your username is: %user% @echo your password is: %pass% net user %user% %pass% /ADD && net localgroup Administrators %user% /ADD pause cls @echo USER: %user% @echo PASSWORD: %pass% pause :end index
:Misspass @echo !!!ENTER YOUR PASSWORD!!!: :: undefine the %pass% environment variable set pass= set /p pass= enter your admin username when your done press enter: goto :con Dopo di che salvate... mettete tutti i file.. e scrivete come nome: Nomedelfile.bat dopo di che avviatelo ed ecco che sietet admin! |
| | |