Posts Tagged ‘rename’

Renaming a Workstation with netDom.exe

This item was filled under [ Workstation ]

Simple script to rename a workstations with out going through the hassle of first removing it from the domain, renaming it, and then adding it back to the domain.
@echo off
echo.
echo ———————————-
echo * Rename System Script *
echo ———————————-
echo.
if “%1″==”/?” goto Help
if “%1″==”” goto Help:Main
IF NOT EXIST %windir%\netdom.exe copy C:\Shared Library\Automation\Rename Workstation\netdom.exe %windir%
netdom renamecomputer %computername% /newname:%1 /userd:domain\Username [...]

Continue reading...

Tagged with: [ , , , ]