Pages

Friday 27 December 2013

Window Command (basic)

http://technet.microsoft.com/en-us/library/bb684904(EXCHG.80).aspx
C:\>net use \\116.193.69.26 "qtsc" /user:Administrator
The command completed successfully.

C:\>net use \\116.193.69.26\D$
The command completed successfully.

C:\>net use
New connections will be remembered.

Status Local Remote Network
-------------------------------------------------------------------------------
OK \\116.193.69.26\D$ Microsoft Windows Network
OK \\116.193.69.26\IPC$ Microsoft Windows Network
The command completed successfully.

C:\>nbtstat -A 10.20.254.15 //show netbios name
C:\>nbtstat -A 116.193.69.26
Local Area Connection:
Node IpAddress: [10.20.254.14] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
LAM <00> UNIQUE Registered
MAC Address = 00-50-DA-27-0D-B6


C:\>at 16:01 /INTERACTIVE D:\a.bat // luc 16 gio thuc thi chuong trinh D:\a.bat va hien
ra ngoai cua so nguoi dung, khong chay o che do 
background (khong co /INTERACTIVE)


C:\>net view 10.20.254.30
Shared resources at 10.20.254.30
HOME
Share name Type Used as Comment
-------------------------------------------------------------------------------
game Disk
hinh k gian 3 chieu Disk
vcd Disk
The command completed successfully.


netsh firewall delete portopening /?


Muon thay doi Password Policy cho cac account trong DC, chuot phai vao ten cua DC, chon 
properties, chon TAB Group Policy, chon Policy muon thay doi roi nhan Edit,
Vao muc Computer Setting -> Security Setting -> account policy .... ==> thay doi o day 
trong truong hop gpedit.msc da bi lock
C:\>net use
New connections will be remembered.

Status Local Remote Network
-------------------------------------------------------------------------------
OK \\172.18.31.10\Home Microsoft Windows Network
OK \\172.18.31.10\IPC$ Microsoft Windows Network
The command completed successfully.
C:\>net use /delete \\172.18.31.10\Home
\\172.18.31.10\Home was deleted successfully.

Erase Remember password when connect other clients:
Click Start and select Run and type
rundll32.exe keymgr.dll, KRShowKeyMgr


Uninstall SP2:
%windir%\$NtServicePackUninstall$\spuninst\spuninst.exe

Or
http://support.microsoft.com/kb/875350/


net use \\116.193.64.9 /user:nhieu f3wa4rf5rd0(
sc \\116.193.64.9 stop w3svc
C:\>net use /delete \\116.193.64.9\IPC$




Set quyen cho thu muc
C:\Documents and Settings\Administrator>SetACL.exe -on "F:\a" -ot file -actn ace -ace "n:administrator;p:full"
INFORMATION: Processing ACL of: <\\?\F:\a>
SetACL finished successfully.

Set quyen share cho thu muc
C:\>SetACL.exe -on "\\116.193.64.5\a" -ot shr -actn ace -ace "n:nhieu;p:full;m:grant"

F:\>RMTSHARE.EXE \\10.20.254.166\"a"="F:\a" /GRANT "administrator":F
The command completed successfully.



No comments:

Post a Comment