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

From Wiki
< Sysadmin:Microsoft Windows‎ | Tips & Tricks
Revision as of 11:26, 27 February 2020 by Mjorgensen (talk | contribs) (Created page with "== Add Computer to Domain via PowerShell == <syntaxhighlight lang="powershell"> Add-Computer -Domain DOMAIN_NAME -Credential DOMAIN_ADMIN </syntaxhighlight> Where: * <code>D...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.