Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. @echo off
  2. echo Podaj nazwe uzytkownika:
  3. set /P UzytkPC=
  4. echo Podaj nazwe komputera:
  5. set /P NazwaPC=
  6. echo Podaj nowa nazwe komputera:
  7. set /P nNazwaPC=
  8. echo Podaj nazwe grupy roboczej:
  9. set /P grupaPC=
  10. set nGrupaPC=SP1
  11.  
  12. echo Zmieniam nazwe komputera...
  13. WMIC computersystem where caption="%NazwaPC%" rename "%nNazwaPC%"
  14. echo Zmieniam grupe robocza...
  15. wmic computersystem where name="%computername%" call joindomainorworkgroup name="%nGrupaPC%"
  16. echo Usuwam konto Computer-art.pl...
  17. net user computer-art.pl /Del
  18. echo Zmieniam nazwe administratora na SP1...
  19. wmic useraccount where name="%UzytkPC%" rename "SP1"
  20. echo Tworze uzytkownika Wizard...
  21. net user /Add Wizard
  22. echo Zmieniam wlasności konta Wizard...
  23. new localgroup administrators Wizard /add
  24. echo Zmieniam haslo uzytkownika SP1...
  25. net user SP1 Tp6PMs:V&/3+
  26. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement