Sysadmin:Microsoft Windows/Tips & Tricks/Windows Server Management

From Wiki
Jump to navigation Jump to search

Add Computer to Domain via PowerShell

Add-Computer -Domain DOMAIN_NAME -Credential DOMAIN_ADMIN


  • DOMAIN_NAME is the name of the domain to join; and,
  • DOMAIN_ADMIN is a domain administrator user account

Rename Computer via PowerShell

Rename-Computer -NewName NEW_HOSTNAME


  • NEW_HOSTNAME is the new desired computer name


  • Provide the -Credential flag to pass admin privileges if not admin.