Difference between revisions of "Sysadmin:Microsoft Windows/Tips & Tricks/Windows Server Management"
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...")
Latest revision as of 11:26, 27 February 2020
Add Computer to Domain via PowerShell
Add-Computer -Domain DOMAIN_NAME -Credential DOMAIN_ADMIN
DOMAIN_NAMEis the name of the domain to join; and,
DOMAIN_ADMINis a domain administrator user account
Rename Computer via PowerShell
Rename-Computer -NewName NEW_HOSTNAME
NEW_HOSTNAMEis the new desired computer name
- Provide the
-Credentialflag to pass admin privileges if not admin.