test import

Categories

Ad Home

Responsive Ads Here

Labels

642-813 SWITCH (2) 642-902 ROUTE (2) 643-832 TSHOOT (1) Access Based Enumeration (1) access list (2) AIX (1) Anti Malware (16) AutoIT (1) backtrack (4) Basic Networking (3) Blogspot (2) bootable USB (1) can not download attach file from gmail (1) ccna (9) CCNA Lab (19) centos (3) Check (1) Check_MK (3) cisco (51) Dell (1) DHCP (1) Download (2) Dynamic Host Configuration Protocol (1) ebook (2) Ebooks (18) eigrp (1) encapsulation (3) esxi5 (2) exam (13) exchange server 2010 (3) facebook (2) firewall-cmd (1) firewall-config (1) firewalld (1) Frame Relay (4) Free Router Simulator Softwares (1) FreeNAS (1) GhostSurf (1) gns3 (1) Hacking Security (5) hardware (1) hotspot (1) How to Change Windows 2008 R2 SID (1) How to create VPN network on Linux (1) How to install openSSH on AIX 5.3 (1) How to Install the Microsoft Core Fonts on Fedora 19 (1) HP (1) IBM (1) Infrastructure Monitoring (3) InterVLAN (1) ip routing (3) IPSec (2) ipv6 (1) IT (122) joomla (1) Kiến thức (278) LAN Technology (3) life skills for (1) lifeskills (2) linux (13) Linux-Unix (24) mac address (1) Magazine (9) Mail (2) mail server (1) MCSA (7) Microsoft (28) mikrotik (3) Multipoint (1) Nagios (3) NAT (1) nested (1) Network (1) Network Load Balancing (1) News (1) Nghệ thuật sống (1) O365 (4) Office 365 (4) OSPF (1) Packet tracer (19) Pass4sure (1) Point to Point (1) Point-to-Point Protocol (PPP) – CHAP (1) Point-to-Point Protocol (PPP) – PAP (1) Policy (3) Port Security (1) Practice Labs (19) Prerequisites (1) proxy (1) relax (7) rhel7 (1) RIP (1) routerOS (3) Routing (1) SAN (1) SAN Storage (1) Scripts (6) Server (1) server room (1) Sharepoint Server 2007 (1) Sharepoint Server 2010 (1) Spanning Tree Protocol (1) SSH login without password (1) Static Default Route (1) Storage (1) subnet (1) switch (1) System Requirements for Windows Server 2012 (1) Tản mạn (2) tcp-ip (1) telnet (1) TestInside (1) Thư giãn (4) Thủ thuật (2) tip (3) Tips + Tricks (29) trick (1) Tutorial (29) Tutorialvirtual server HighAvailability (1) ubuntu (4) unix (3) Unix-Linux (8) usb (1) Virtual Private Network (VPN) - IPsec (Site-to-Site) (1) Virtual Trunking Protocol (1) Virtualization (2) Virtualization HighAvailability (1) virus (5) vmware (6) vpn (4) vpn client (1) vpn client to site (2) vpn site to site (2) vSphere 5 (6) vSphere 5.1 (1) WAN Technology (13) Warranty (1) wildcard mask (1) windows 7 (1) windows 8 (1) windows server 2008 (3) Windows Server 8 (1)

Facebook

Ethereum

Subscribe for New Post Notifications

Ripple

Ethereum Price

Monday Tuesday Wednesday
$402.89 $384.06 $396.34

Contact Form

Name

Email *

Message *

Bitcoin

Litecoin

Browsing Category " Scripts "

Script Auto Join domain

Script Join domain tự động


Việc join domain cho hệ thống gần cả trăm máy tính là một công việc thật là...khủng khiếp phải không các bạn?
Vì vậy, chúng ta cần "tự động hóa" công việc này để tiết kiệm thời gian.grin
Các bạn mở notepad paste đoạn code sau vào, lưu lại với tên là joindomain.vbs

Const JOIN_DOMAIN = 1
Const ACCT_CREATE = 2
Const ACCT_DELETE = 4
Const WIN9X_UPGRADE = 16
Const DOMAIN_JOIN_IF_JOINED = 32
Const JOIN_UNSECURE = 64
Const MACHINE_PASSWORD_PASSED = 128
Const DEFERRED_SPN_SET = 256
Const INSTALL_INVOCATION = 262144

strDomain = "lecuong.info"

strUser = "administrator"

strPassword = "12345"

Set objNetwork = CreateObject("WScript.Network")
strComputer = objNetwork.ComputerName

Set objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\" & _
strComputer & "\root\cimv2:Win32_ComputerSystem.Name='" & _
strComputer & "'")

ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, _
strPassword, strDomain & "\" & strUser, NULL, _
JOIN_DOMAIN + ACCT_CREATE)




Các bạn thay thế :

-"lecuong.info"bằng tên domain của bạn
-"administrator" bằng tên user dùng để join domain
-"12345"  bằng password của user dùng join domain


Good luck!

Thêm tùy chọn Copy to foder và Move to folder.

Các bạn download file ở bên dưới. Double click vào chọn Yes là xong!

Dowload here

Hide or Show Control Panel

Code viết như sau:

Option Explicit
Dim WSHShell, n, MyBox, p, p1, TitleOnlylove, errnum, vers, itemtype
Set WSHShell = WScript.CreateObject("WScript.Shell")

p = "HKCU\Software\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\"
p1 = "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
p = p & "NoControlPanel"
p1 = p1 & "NoControlPanel"
itemtype = "REG_DWORD"
TitleOnlylove = "Mr.Cuong say:"
Err.Clear

On Error Resume Next
n = WSHShell.RegRead (p)
On Error Goto 0
errnum = Err.Number
if errnum <> 0 then
  WSHShell.RegWrite p, 0, itemtype
  WSHShell.RegWrite p1, 0, itemtype
End If
If n = 0 Then
  n = 1
  WSHShell.RegWrite p, n, itemtype
  WSHShell.RegWrite p1, n, itemtype
  Mybox = MsgBox("Control Panel da bi AN, Log Off hoac Restart lai may tinh de thay doi co tac dung!", 4096, TitleOnlylove)
ElseIf n = 1 then
  n = 0
  WSHShell.RegWrite p, n, itemtype
  WSHShell.RegWrite p1, n, itemtype
  Mybox = MsgBox("Control Panel da duoc HIEN LEN, Log Off hoac Restart lai may tinh de thay doi co tac dung!", 4096, TitleOnlylove)
End If


Lưu lại với tên file .vbs :)
\
Hoặc các bạn có thể download đoạn script trên tại đây

Hide & Show Properties My Computer

Đoạn script làm ẩn hoặc hiện tùy chọn Properties khi click phải vào My Computer.

Download here

Thêm “Remove Temp Files” và “Run Disk Cleanup” vào menu Recycle Bin


Highslide JS

Đoạn script này sẽ add thêm vào menu của Recyle Bin thêm 2 tùy chọn là “Remove Temp Files” và “Run Disk Cleanup” để có thể dễ dàng xóa các file rác và chạy tiện ích Dis Cleanup, giúp ổ cứng sạch rác, windows chạy nhanh hơn.





Download here






[Script] Khóa & mở Registry

Các bạn download ở bên dưới nhé!
Script rất hữu dụng khi bị virus đấy

Download here