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



tải về 1.67 Mb.
Chế độ xem pdf
trang13/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   9   10   11   12   13   14   15   16   ...   92
Cac lenh co ban trong DOS

Examples
Display transports: 
C:\>browstat dn 
List of transports currently bound to the browser 
1 \Device\NetBT_Tcpip_{B1AFFCA2-6410-4644-9FE7-BA6C274FD4F3} 
List the backup DNS servers for transport #1: 
C:\>browstat gb 1 
Browser: \\PC00096 
Browser: \\PC00082 
List Print queues for transport #1:
C:\> BROWSTAT vw 1 |find "PQ"
“If your experiment needs statistics, you ought to have done a better experiment” - Ernest 
Rutherford 
CACLS.exe 
Display or modify Access Control Lists (ACLs) for files and folders. 
Access Control Lists apply only to files stored on an NTFS formatted drive, each ACL 
determines which users (or groups of users) can read or edit the file. When a new file is created 
it normally inherits ACL's from the folder where it was created. 
Syntax 
CACLS pathname [options
Options: 
/T Search the pathname including all subfolders.
/E Edit ACL (leave existing rights unchanged) 
/C Continue on access denied errors.
/G user:permission 
Grant access rights, permision can be: 
R Read
W Write 
C Change (read/write)
F Full control 
N None 
/R user 
Revoke specified user's access rights (only valid with /E).
/P user:permission 
Replace access rights, permission can be:
R Read 
W Write 
C Change (read/write)
F Full control 


N None 
/D user 
Deny access to user
/s:sddl 
Replace the ACL(s) with those specified in the SDDL string • 
(not valid with /e, /g, /r, /p, or /d).
In all the options above "
user
" can be a UserName or a Workgroup (either local or global) 
• = Windows 7/2008 or above 
You can specify more than one user:permission in a single command. Wildcards can be used to 
specify multiple files. 
If a UserName or WGname includes spaces then it must be surrounded with quotes e.g. 
"Authenticated Users" 
If no options are specified CACLS will display the ACLs for the file(s) 
Setting Deny permission (/D) will deny access to a user even if they also belong to a group that 
grants access. 
Limitations
Cacls cannot display or modify the ACL state of files locked in exclusive use. 
Cacls cannot set the following permissions: 
change permissions, take ownership, 
execute

delete
use 
XCACLS
 to set any of these.
Using CACLS

The CACLS command does not provide a /Y switch to automatically answer 'Y' to the Y/N prompt. 
However, you can 
pipe
 the 'Y' character into the CACLS command using 
ECHO
, use the following 
syntax: 
ECHO Y| CACLS filename /g username:permission

To edit a file you must have the "Change" ACL (or be the file's owner) 

To use the CACLS command and change an ACL requires "FULL Control" 

File "Ownership" will always override all ACL's - you always have Full Control over files that you 
create. 

If CACLS is used without the /E switch all existing rights on [pathname] will be replaced, any 
attempt to use the /E switch to change a [user:permission] that already exists will raise an error. 
To be sure the CALCS command will work without errors use /E /R to remove ACL rights for the 
user concerned, then use /E to add the desired rights. 

The /T option will only traverse subfolders below

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   9   10   11   12   13   14   15   16   ...   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