1. Lệnh Ping : Cú pháp: Code: ping ip/host [/t][/a][/l][/n]



tải về 1.67 Mb.
Chế độ xem pdf
trang7/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   2   3   4   5   6   7   8   9   10   ...   92
Cac lenh co ban trong DOS

Filename - The comma-delimited file that AddUsers uses for data. 
/s:x - Change the delimiter character used in filename to x
e.g. /s:~ would make the delimiter "~"


Domain - Query the Primary Domain Controller (PDC) of domain
You can also use \\Servername to specify the machine where 
user accounts are created or read.
AddUsers will use the local computer by default (if you do 
not specify Domain
/c - Create user accounts, local groups, and global groups as 
specified by filename
/d{:u} - Dump user accounts, local groups, and global groups to 
filename
The (:u) is an optional switch that causes current accounts to be written to the specified file in Unicode 
text format. Choosing to dump current user accounts does not save the account's passwords or any 
security information for the accounts. 
Note: Password information is not saved in a user account dump and if you use the same file to create 
accounts, all passwords of newly created accounts will be empty. To back up security information for 
accounts, use a Tape Backup. 
/e - Erase the user accounts specified in the file name.
CAUTION: Be careful when erasing user accounts, as it is not 
possible to recreate 
an account with the same SID. This option will 
not erase built-in accounts.
 Password_options 
/p: - Set account creation options, used along with any combination 
of the following: 
* l - Users do not have to change passwords at next logon. 
* c - Users cannot change passwords. 
* e - Passwords never expire. (implies l option) 
* d - Accounts disabled. 
By default, all created users are required to change their 
password at logon. 
Example 
Create a comma-delimited text file, which contains the new users to be created. Following the Syntax as 
follows: 
[Users] 
User Name,Full name, Password, Description, HomeDrive, Homepath, Profile, Script 
e.g. 
[User] 
jimmye,James Edward Phillip II,,,,,, 
alexd,Alex Denuur,,,E:\,E:\users\alexd,, 
ronj,Ron Jarook,ChangeThis,,E:\,E:\users\ronj,, 
sarahs,Sarah Smith,,,,,, 
u0123,Mike Olarte,,,,,, 
Save the file as C:\Users.txt and execute the command 
AddUsers MyDomain /c c:\Users.txt /p:e 
“That‟s two hours I‟ll never get back, is a favorite thing for an angry person to say about a movie he 
hates. But the thing is, every two hours are two hours he‟ll never get back” - Charlie Kaufman 
ARP.exe 
ARP - Address Resolution Protocol
Display and modify the IP-to-Physical address translation tables used by address resolution 
protocol. 
Syntax 
View the contents of the local ARP cache table


ARP -a [ip_addr] [-N if_addr
Add a static Arp entry for frequent accessed hosts
ARP -s ip_addr eth_addr [if_addr
Delete an entry
ARP -d ip_addr [if_addr
Key 
-a Display current ARP entries. 
May include more than one network interface. 
If ip_addr is specified, the IP and Physical 
addresses for only the specified computer are 
displayed.
-g Same as -a. 
-N if_addr Display the ARP entries for the network interface 
specified 
by if_addr. 
-d ip_addr Delete the host specified by ip_addr. 
-d * will delete all hosts. 
-s Add the host and associates the Internet address 
ip_addr 
with the Physical address eth_addr. The Physical 
address is 
given as 6 hexadecimal bytes separated by hyphens. The 
entry 
is permanent. 
eth_addr Specifies a physical address. 
if_addr If present, this specifies the Internet address of the 
interface whose address translation table should be 
modified. 
If not present, the first applicable interface will be 
used. 
If two hosts on the same sub-net cannot ping each other successfully, try running ARP -a to list 
the addresses on each computer to see if they have the correct MAC addresses. 
A host's MAC address can be checked using 
IPCONFIG
. If another host with a duplicate IP 
address exists on the network, the ARP cache may have had the MAC address for the other 
computer placed in it. ARP -d is used to delete an entry that may be incorrect. 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5   6   7   8   9   10   ...   92




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương