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.
Strona 1 z 1
Cykliczne nadpisywanie rejestru
#2
Napisano 16 luty 2011, 23:41
Robi się to w notatniku a potem np dodaje do autostartu.
w wikipedi masz to piętkie opisane:
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>]
@=-
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
|

Logowanie »
Rejestracja
Pomoc
Dodaj odpowiedź
Cytuj