Rename computer and join to domain in one step with PowerShell

You can just use Add-Computer, there is a parameter for “-NewName”

Example: Add-Computer -DomainName MYLAB.Local -ComputerName TARGETCOMPUTER -newname NewTARGETCOMPUTER

You might want to check also the parameter “-OPTIONS”

http://technet.microsoft.com/en-us/library/hh849798.aspx

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)