Wednesday 15 June 2011

Windows7: Auto Join to the AD using netdom

Requirements:
  1. Download - Remote Server Administration Tools for Windows 7
  2. Netdom.exe it has to run from C:\Windows\System32\   folder otherwise netdom.exe does not work
  3. Administrator user and password
Step:

  1. Create a .bat file and insert this code:
    c:
    cd\Windows\system32
    netdom join %ComputerName% /domain:scc.local /userd:%1 /passwordd:%2
    shutdown -r -t 300
  2. Copy this file into local computer using Zenworks Applications
  3. Then run that .bat file using Zenworks Applications and pass the administrator username and password as command line parameter.



No comments:

Post a Comment