Komputer Świat Ekspert - Forum: Cykliczne nadpisywanie rejestru - Komputer Świat Ekspert - Forum

Skocz do zawartości

Strona 1 z 1

Cykliczne nadpisywanie rejestru

#1 Użytkownik nie jest zalogowany   biskupin 

  • Nowy Uczestnik
  • Grupa: Czytelnicy
  • Postów 84
  • Rejestracja: 11-luty 04

Napisano 16 luty 2011, 23:25

Czesc,

moj problem polega na tym, ze sluzbowy laptop, ktorego uzytkuje jest skonfigurowany do pracy w domenie. Domena, oprocz skryptow, ktorych nie chce ruszac, blokuje mi mozliwosc pobierania updat'ow Windows'a. Odblokowalem ta dysfunkcje w rejestrze, ale co jakis czas domena nadpisuje moje zmiany w rejestrze i musze recznie je zmieniac (7 kluczy rejestru). Chcialbym napisac skrypt (patch), ktory po kliknieciu automatycznie nadpisywalby domyslne klucze. Bede wdzieczny za pomoc w okresleniu skladni polecenia i narzedzia, ktore nadpisywaloby rejestr. Z gory dziekuje.
0

#2 Użytkownik nie jest zalogowany   kar 

  • Moderator xD
  • Pip
  • Grupa: Czytelnicy
  • Postów 162
  • Rejestracja: 14-lipiec 08

Napisano 16 luty 2011, 23:41

Robi się to w notatniku a potem np dodaje do autostartu.
w wikipedi masz to piętkie opisane:
.REG files

.REG files (also known as Registration entries) are text-based human-readable files for storing portions of the registry. On Windows 2000 and later NT-based operating systems, they contain the string Windows Registry Editor Version 5.00 at the beginning and are Unicode-based. On Windows 9x and NT 4.0 systems, they contain the string REGEDIT4 and are ANSI-based.[17][not in citation given] Windows 9x format .REG files are compatible with Windows 2000 and later NT-based systems. The Registry Editor on Windows on these systems also supports exporting .REG files in Windows 9x/NT format. Data is stored in .REG files in the following syntax:[17]

[<Hive Name>\<Key Name>\<Subkey Name>]
"Value Name"=<Value type>:<Value data>

The Default Value of a key can be edited by using @ instead of "Value Name":

@=<Value type>:<Value data>

String values do not require a <Value type> (see example), but backslashes ("\") needs to written/escaped with a double-backslash ("\\").

For example, to add the values "Value A", "Value B", "Value C", "Value D", "Value E", "Value F", "Value G", "Value H" and "Value I" to the HKLM\SOFTWARE\Microsoft key,

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft]
"Value A"="<String value data>"
"Value B"=hex:<Binary data>
"Value C"=dword:<DWORD value integer>
"Value D"=hex(7):<Multi-string value data (as comma-delimited list of hexadecimal values)>
"Value E"=hex(2):<Expandable string value data (as comma-delimited list of hexadecimal values)>
"Value F"=hex(B):<QWORD value (as comma-delimited list of 8 hexadecimal values, in little endian byte order)>
"Value G"=hex(4):<DWORD value (as comma-delimited list of 4 hexadecimal values, in little endian byte order)>
"Value H"=hex(5):<DWORD value (as comma-delimited list of 4 hexadecimal values, in big endian byte order)>
"Value I"=hex(0):

Data from .REG files can be added/merged with the registry by double-clicking these files or using the /s switch in the command line. .REG files can also be used to remove registry data.

To remove a key (and all subkeys, values and data), the key name must be preceded by a minus sign ("-").[17]

For example, to remove the <Key Name> key (and all subkeys, values and data),

[-HKEY_LOCAL_MACHINE\SOFTWARE\<Key Name>]

To remove a value (and its data), the values to be removed must have a minus sign ("-") after the equal sign ("=").[17]

For example, to remove only the "Value A" and "Value B" values (and their data) from the <Key Name> key,

[HKEY_LOCAL_MACHINE\SOFTWARE\<Key Name>]
"Value A"=-
"Value B"=-

To remove only the (Default) value of the key <Key Name> (and its data),

[HKEY_LOCAL_MACHINE\SOFTWARE\<Key Name>]
@=-


Dołączona grafika No a mówią że komputer nie uczy. :)
0

#3 Użytkownik nie jest zalogowany   biskupin 

  • Nowy Uczestnik
  • Grupa: Czytelnicy
  • Postów 84
  • Rejestracja: 11-luty 04

Napisano 17 luty 2011, 08:42

Bardzo dziekuje za pomoc
0

Strona 1 z 1


Szybka odpowiedź

  

Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych


Zmień widoczność shoutboxa Shoutbox

emikyou  : (16 kwiecień 2012 - 13:26) @Ferrari: Na PŁ korzystają z "OpenGL SuperBible: Comprehensive Tutorial and Reference" i "OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1"
wtomczak  : (10 kwiecień 2012 - 09:27) masz problem z komputerem napisz na facebooku na stronie WT654, na pewno pomoże
Maciej :)  : (08 kwiecień 2012 - 09:36) A co do reklam, to mi na operze adBlock coś nie służy, szczególnie z postami bota redakcji :( od kiedy go dali, to zaczęło się walić..
Maciej :)  : (08 kwiecień 2012 - 09:35) Hej witam :) no, jak przestałem kupować Eksperta to wzięli i wstrzymali ;| także nie mam tylko numeru pierwszego i ostatniego :p trochę szkoda, parę lat się było...
neo5628  : (05 kwiecień 2012 - 21:57) Help http://forum.ks-ekspert.pl/topic/140746-problem-z-dzwiekiem/ Proszę
PiKey  : (21 marzec 2012 - 18:24) ludzie, pomóżcie :) http://forum.ks-ekspert.pl/topic/140418-jak-dziala-sprawdzanie-wykonania-zadania-na-stronach-typu-doladujse/
PiKey  : (21 marzec 2012 - 18:24) ds
A:-)Brunuś  : (17 marzec 2012 - 19:17) jest tu ktoś? http://forum.ks-ekspert.pl/topic/140400-firewire-obudowa-do-dysku-25-—-200-zlo/
Ferrari  : (16 marzec 2012 - 11:12) Polećcie dobrą książkę do OpenGL albo kurs w sieci :)
lisz55  : (15 marzec 2012 - 21:44) przez ktore reklamy? nie widze zeby jakies nowe byly
Pretender  : (15 marzec 2012 - 18:22) :/
Pretender  : (15 marzec 2012 - 18:22) az sie nie chce czytac tego forum przez te parszywe reklamy...ale dzidostwo zrobili...
yojo2  : (12 marzec 2012 - 13:26) wchodz na forum przez lynxa :P
Ferrari  : (10 marzec 2012 - 21:21) Jak tu nie korzystać z AdBlocka, kiedy Forum Eksperta wywala reklamę na całą stronę?
lisz55  : (09 marzec 2012 - 21:41) siedze i czytam calkiem niezle ale mogl by ktos wytlumaczyc o co chodzi z dark knightem nie widzialem tego filmu
lisz55  : (09 marzec 2012 - 21:40) to moze rozruszam troche czat http://moviesascode.net/
Pretender  : (06 marzec 2012 - 16:43) rozmowy tak jak Enty prowadziły w powieści Tolkiena :P
dawido90  : (05 marzec 2012 - 15:03) to już poprostu przyzwyczajenie
yojo2  : (04 marzec 2012 - 22:25) mailem przestac tu wchodzic, ale stwierdzilem ze skoro i tak zwykle tu tylko wchodze i wychodze, to wszystko jedno :P
Ferrari  : (04 marzec 2012 - 21:16) Już myślałem, że ruch na forum spada zera, a jednak pochodna zmieniła znak :)
Rozszerz pole shoutboxa