Jump to content
tadabada

Scripter wanted

Recommended Posts

Ca sa scoti o parola de pe un user folosesti comanda:

net user NUME ""

Ca sa adaugi o parola pe un user folosesti:

net user NUME PAROLA

Ca sa creezi un autologin, dupa cum scrie aici:


REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domainname /f
REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d NUME /f
REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d PAROLA /f

Acuma pe astea le poti combina intr-un fisier .bat si sa le executi pe calculatoarele respective atata timp cat contul de pe care ruleaza scriptul are permisiuni de administrator.

Link to comment
Share on other sites

Partea aia am rezolvato, ms pt ajutor. As mai avea o intrebare. Am 2 .bat, unu dezinstaleaza o aplicatie veche si face reboot, cum fac sal executez pe al doilea dupa reboot? Am incercat adaugand cheia de registru in RunOnce dar nu face nimic. cheia e

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v install /t REG_SZ /d C:\Emp\Install\install.exe /f

Link to comment
Share on other sites

Simplu: il pui in start-up si daca aplicatia exista o sterge si da restart, daca nu exist face ce vrei tu.

Cand lucram ca tehnician la o universitate aveam scripturi-client in start-up care executau un alt script de pe un share.

Atunci cand vroiam sa le fac sa execute ceva de genul trebuia doar sa modific scriptul de pe server si toate celelalte calculatoare il executau.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...