Tuesday, November 6, 2012

Configuring a new Windows Server 2012 instance using PowerShell


  1. Join the domain (prompt for user name and password of domain administrator):
    Add-Computer -DomainName {Domain Name}
  2. Add a domain user as an administrator:
    net localgroup administrators {Domain Name}\{User Name} /add
  3. Name the computer:
    Rename-Computer {New Name}
  4. Enable PowerShell remoting (note: no double hops):
    Enable-PSRemoting
  5. Restart the computer:
    Restart-Computer

0 comments:

Post a Comment