Regini DOS Change Registry Permissions tool _dos/bat

Source: Internet
Author: User
This thing is mainly used under the CMD to modify the registry and Registry permissions!
The use of research for a night to get out, Microsoft wrote on the no use AH depressed.
How to use
C:\>regini Regset.ini is fine.
Regset.ini is the data you want to modify below for example!
Regset.ini File Contents
Reference:
Copy Code code as follows:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Test = C:\windows\system32\fucktheworld.exe

is to add a key value to the startup key. Test content is start C:\windows\system32\fucktheworld.exe
It's simple!
Reference:
Copy Code code as follows:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run [ +]

Set the Run key to allow system control only for other users not controllable [17] for other parameters of control parameters see help below
Copy Code code as follows:

L:hacker>regini
Usage:regini [M machinename |-h Hivefile hiveroot |-w Win95 Directory]
[I. N] [-O outputwidth]
[-b] textfiles ...

Where:-m specifies a remote Windows NT machine whose registry is to be Manipula
Ted.
-h Specifies a specify local hive to manipulate.
-W Specifies the paths to a Windows System.dat and User.dat files
-I-n Specifies the display indentation multiple. Default is 4
-o outputwidth specifies how wide the ' output is. By default the
Outputwidth is set to the width of the console window if standard
Output has not been redirected to a file. In the latter case, an
Outputwidth of the is used.

-b Specifies that REGINI should is backward compatible with older
Versions of REGINI that did not strictly enforce line continuations
and quoted strings specifically, REG_BINARY, reg_resource_list and
Reg_resource_requirements_list data types did not need line
Continuations after the ' the ' of the ' gave ' of the ' size '.
It just kept looking on following lines until it found enough data
Values to equal the data length or hit invalid input. Quoted
Strings were only allowed in REG_MULTI_SZ. They could not being
Specified around key or value names, or around values for REG_SZ or
REG_EXPAND_SZ Finally, the old REGINI did not support the semicolon
As an, line comment character.

Textfiles is one or more ANSI or Unicode text files with registry data.

The easiest way to understand the format of the "input textfile is to" use
The REGDMP command with no arguments to dump the current contents of
Your NT Registry to standard out. Redirect standard out to a file and
This file is acceptable as input to REGINI

Some general rules are:
Semicolon character is a end-of-line comment character, provided it
Is the "Non-blank character on" a line

Backslash character is a line continuation character. All
Characters from the backslash up to but not including the
Non-blank character of the next line are ignored. If there is more
than one space before the line continuation character and it is
Replaced by a.

Indentation is used to indicate the structure of registry keys
The REGDMP program uses indentation in multiples of 4. Use
Hard tab characters for indentation, but embedded hard tab
Characters are converted to a single space regardless of their
Position

Values should come before child keys, as they are associated with
The previous key at or above the value ' s indentation level.

For key names, leading and trailing spaces characters are ignored and
Not included in the key name, unless the "key name is" surrounded by
Quotes. imbedded spaces are part a key name.

Key names can followed by a Access control List (ACL) which is a
Series of decimal numbers, separated by spaces, bracketed by a
square brackets (e.g. [8 4 17]). The valid numbers and their
Meanings are:

1-administrators Full Access
2-administrators Read Access
3-administrators Read and Write Access
4-administrators Read, Write and Delete Access
5-creator Full Access
6-creator Read and Write Access
7-world Full Access
8-world Read Access
9-world Read and Write Access
10-world Read, Write and Delete Access
11-power Users Full Access
12-power Users Read and Write Access
13-power Users Read, Write and Delete Access
14-system Operators Full Access
15-system Operators Read and Write Access
16-system Operators Read, Write and Delete Access
17-system Full Access
18-system Read and Write Access
19-system Read Access
20-administrators Read, Write and Execute Access
21-interactive User Full Access
22-interactive User Read and Write Access
23-interactive User Read, Write and Delete Access

If There is a equal sign on the same line as left square bracket
Then the equal sign takes precedence, and the line is treated as a
Registry value. If the text between the square brackets is the
String DELETE with no spaces, then REGINI'll delete the key and
Any values and keys under it.

For registry values, the syntax is:

Value Name = Type data

Leading spaces, spaces on either side of the equal sign and spaces
Between the type keyword and data are ignored, unless the value name
is surrounded by quotes. If the text to the right of the equal sign
Is the string delete, then REGINI would delete the value.

The value name may is left off or is specified by a at-sign
Character which is the same thing, namely the empty value name. So
The following two lines are identical:

= Type data
@ = Type data

This syntax means the can ' t create a value with leading or
Trailing spaces, an equal sign or a at-sign in the value name,
Unless the name in quotes.

Valid value types and format of data that follows are:

REG_SZ text
REG_EXPAND_SZ text
REG_MULTI_SZ "string1" "str" "Ing2" ...
Reg_date mm/dd/yyyy hh:mm DayOfWeek
REG_DWORD Numberdword
REG_BINARY numberofbytes Numberdword (s) ...
Reg_none (same format as REG_BINARY)
Reg_resource_list (same format as REG_BINARY)
Reg_resource_requirements (same format as REG_BINARY)
Reg_resource_requirements_list (same format as REG_BINARY)
Reg_full_resource_descriptor (same format as REG_BINARY)
Reg_qword Numberqword
Reg_multisz_file FileName
Reg_binaryfile FileName

If No value type is specified, the default is REG_SZ

For REG_SZ and REG_EXPAND_SZ, if you want leading or trailing spaces
In the value text, surround the "text with quotes." The value text
Can contain any number of imbedded quotes, and REGINI would ignore
them, as it only looks at the "the" and "character for quote"
Characters.

For REG_MULTI_SZ, the each component string was surrounded by quotes. If
You want a imbedded quote character, then double quote it, as in
string2 above.

For REG_BINARY, the value data consists of one or more numbers the
Default base for numbers is decimal. Hexidecimal may be specified
By using the 0x prefix. The is the number of data bytes,
Excluding the number. After the the number must come enough
Numbers to fill the value. Each number represents one DWORD or 4
bytes. So if the is 0x5 you would need two more
Numbers after this to fill the 5 bytes. The High order 3 bytes
Of the second DWORD would be ignored.

Whenever specifying a registry path, either on the command line
Or in a input file, the following prefix strings can be used:

HKEY_Local_Machine
Hkey_users
HKey_Current_User
USER:

Each of this strings can stand alone as the key name or be followed
A backslash and a subkey path.

Regini:no textfile specified

Package download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.