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

From jrgnsn.net Wiki
Jump to navigation Jump to search

Add Computer to Domain via PowerShell

Add-Computer -Domain DOMAIN_NAME -Credential DOMAIN_ADMIN

Where:

  • 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

Where:

  • NEW_HOSTNAME is the new desired computer name

Optional:

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