Pokaż wyniki od 1 do 3 z 3

Wątek: Pilny problem z plikiem wsadowym (WinNT)

Mieszany widok

  1. #1
    Pełne uzależnienie
    Dołączył
    Apr 2006
    Posty
    1 370

    Domyślnie

    Zrob login script. niech kazdy komp wykona skrypt, i wynik niech wykona sie gdzies na \\jakis_server\jakis_share niech kazdy komp jako wynikowy plik zamiast kompy.txt zrobi plik wynikowy ze zeminna %hostname%, czyli jak masz 20 kompow to niehc kazdy wrzuci do %hostname%.txt (musisz ja zdeklarowac w skrypcie - innaczej klapa. Masz wtedy w katalogu na serverez tyle plikow ile masz stacji z nazwami np. KOMP1.txt, KOMP2.txt i w nich twoje spiste - potem 1 linia z wierasza polecen i zcalaszpliki do 1 i masz to co chciales.

    To export all registry to file c:\all.reg, use the /e switch as follows:
    regedit /E c:\all.reg
    To export a specific registry key to file file.reg, use the /e switch as follows:
    regedit /E file.reg <registry_key>, for example
    regedit /E c:\hklm_run.reg "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Run" will export list of Startup programs from Run section.
    Merge or import file.reg to Registry:
    regedit file.reg
    Create and replace an existing registry from a file file.reg:
    regedit /C file.reg
    For silent execution of Regedit command, use the /s parameter. If /S specified, Regedit will be operate quietly, without asking for confirmation.
    To delete specific registry key from the registry:
    Win 95,98,ME Regedit has switch /d, use it as follows:
    regedit /D <registry_key>, for example
    regedit /D "HKEY_CLASSES_ROOT\CLSID\{834261E1-DD97-4177-853B-C907E5D5BD6E}" will delete entry of Trojan CWS


    Win 2000, XP You can create .reg file and specify in it minus sign before the key name to delete (example - contents of sample file c:\del.reg):

    REGEDIT4
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\System]

    Now if Regedit will be launched by command regedit c:\del.reg, the key HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\System will be removed from the system registry.
    Win 95,98,ME There are several command line switches for specifying location of User.dat (/L) and user name (/R):
    regedit /L:c:\windows\user.dat /e c:\test.reg
    Ostatnio edytowane przez mor_feusz ; 24-07-2006 o 15:47

Uprawnienia umieszczania postów

  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •