Difference between revisions of "Sysadmin:Microsoft Windows/Tips & Tricks/Windows Server Management"

From jrgnsn.net Wiki
Jump to navigation Jump to search
(Created page with "== Add Computer to Domain via PowerShell == <syntaxhighlight lang="powershell"> Add-Computer -Domain DOMAIN_NAME -Credential DOMAIN_ADMIN </syntaxhighlight> Where: * <code>D...")
 
(No difference)

Latest revision as of 11:26, 27 February 2020

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.