Getting Started with Server Core - Account and Server Management Commands

AID: 139
  • Status: Published

3330 points

  • Bymkbean
  • TypeGeneral
  • Posted on2008-10-08 at 08:30:32
Awards
  • Community Pick
The purpose of this article is not to give you every last detail to Server Core but to provide you with what you need to know it get it up and running in your environment in particular to Domain and Server Management Commands.  

Before you can start managing certain settings below, you will need to make sure that networking is configured on your Server Core installation.  For the basics on how to configure those be sure to read the following article - Getting Started with Server Core - Networking Commands

The most common question I get and something every Server Core Admin should know is how to get the command prompt back once you accidently type exit.  You will need to open Task Manager (Ctrl-Shift-Esc) and click on File - New Task.  Now just type CMD in there and a new Command Prompt window will open up for you.

Join a domain:
netdom join ComputerName /domain:DomainName /userd:UserName /passwordd:*
    * Replace UserName with a valid UserName    
    * Yes, /passwordd:* needs to have that second d at the end of it.
   
Remove from domain:
netdom remove

Rename a Domain Member:
netdom renamecomputer %computername% /NewName: /userd:UserName /passwordd:*
    * Replace NewName with the new name of the domain member
    * Replace UserName with a valid UserName    
    * Yes, /passwordd:* needs to have that second d at the end of it.

Rename a Stand-Alone Member:
netdom renamecomputer /NewName:
     * Replace NewName with the new name of the server

Rename Administrator:
wmic UserAccount where Name="Administrator" call Rename Name="new-name"
    * Please don't call your new admin new-name...so make sure to replace that with a valid name :)  

Add a Local User Account:
net user UserName * /add
    * Replace UserName with a valid name
    * You will be prompted to put in the password twice...it does not display it to the screen.

Delete a Local User Account:
net user UserName /delete
    * Replace UserName with a valid name

Add User to a Local Group:
net localgroup GroupName UserName /add
    * Replace GroupName with a valid local group name
    * Replace UserName with a valid UserName.  If it is a domain user use the following syntax - DomainName\UserName

Remove User from a Local Group:
net localgroup GroupName UserName /delete
    * Replace GroupName with a valid local group name
    * Replace UserName with a valid UserName.  If it is a domain user use the following syntax - DomainName\UserName

Confirm Domain and New Computer name:
Set

Update User Passwords:
Net user [/domain] *


The next set of commands will help you configure the server to help with managing the server.

Toggle Remote Desktop on and off:
Cscript \windows\system32\scregedit.wsf /ar 0

Enable reduced security for RDP connections:
Cscript \windows\system32\scregedit.wsf /cs 0

Active Server Core:
Local method - Slmgr.vbs -- ato
Remote method - Cscript windows\system32\slmgr.vbsServerName UserName password:-ato

List of installed patches:
wmic qfe list

Install Updates:
wusa .msu /quiet

Configure for AutoUpdates:
cscript scregedit.wsf /AU /4

Disable AutoUpdates:
cscript scregedit.wsf /AU /1

View AutoUpdate Setting:
cscript scregedit.wsf /AU /v

Configure the Page File:
wmic pagefileset where name= set InitialSize=,MaximumSize=

Configure a Proxy Server: (Server Core cannot use a proxy that requires a proxy)
netsh Winhttp set proxy :

All your favorite TCP/IP commands work including the following:
IPConfig
ARP
Ping
PathPing
TraceRT
Route
NSLookup
NetStat
NBTStat

List Running Services:
sc query

Start and/or Stop a Service:
sc start
sc stop

Task Manager: (Ctrl+Shift+Esc)
taskmgr

Manage Disk Volumes:
Diskpart /?

Defrag a Volume:
defrag /?

Change Time and Time Zone:
control timedate.cpl

Change the Desktop Resolution: (requires you to log off and back on)
Regedit - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video
\0000\DefaultSettings.XResolution
\0000\DefaultSettings.YResolution

Display the Time in the Command Prompt:
prompt [$t]$s$p$g

Log off Server Core:
logoff

Restart Server Core:
shutdown /r /t 0
    * the /t 0 is the time that we are allocated to restart in seconds

Shutdown Server Core:
shutdown /s /t 0
    * the /t 0 is the time that we are allocated to restart in seconds

Feel free to add your own Networking related commands.  

Thanks,
Brian
Asked On
2008-10-08 at 08:30:32ID139
Tags

Microsoft

,

Server Core

,

Server 2008

,

Configuration

Topic

Windows Server 2008

Views
1725

Comments

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Windows Server 2008 Experts

  1. dariusg

    487,253

    Wizard

    1,568 points yesterday

    Profile
    Rank: Genius
  2. hanccocka

    269,517

    Guru

    2,000 points yesterday

    Profile
    Rank: Genius
  3. kevinhsieh

    266,722

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  4. demazter

    188,767

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  5. mkline71

    181,660

    Guru

    2,250 points yesterday

    Profile
    Rank: Genius
  6. motnahp00

    163,470

    Guru

    6,700 points yesterday

    Profile
    Rank: Sage
  7. leew

    144,180

    Master

    0 points yesterday

    Profile
    Rank: Savant
  8. ve3ofa

    131,857

    Master

    0 points yesterday

    Profile
    Rank: Genius
  9. acbrown2010

    114,392

    Master

    0 points yesterday

    Profile
    Rank: Genius
  10. arnold

    101,348

    Master

    2,000 points yesterday

    Profile
    Rank: Genius
  11. iSiek

    89,671

    Master

    6,100 points yesterday

    Profile
    Rank: Genius
  12. dstewartjr

    84,405

    Master

    2,000 points yesterday

    Profile
    Rank: Genius
  13. Anuroopsundd

    80,040

    Master

    750 points yesterday

    Profile
    Rank: Sage
  14. dvt_localboy

    79,517

    Master

    0 points yesterday

    Profile
    Rank: Sage
  15. alanhardisty

    76,976

    Master

    0 points yesterday

    Profile
    Rank: Genius
  16. newmath

    73,559

    Master

    0 points yesterday

    Profile
    Rank: Master
  17. hhaywood000

    71,824

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  18. Neilsr

    70,519

    Master

    0 points yesterday

    Profile
    Rank: Genius
  19. RobWill

    60,712

    Master

    0 points yesterday

    Profile
    Rank: Savant
  20. Mutawadi

    60,156

    Master

    0 points yesterday

    Profile
    Rank: Guru
  21. dkotte

    56,740

    Master

    0 points yesterday

    Profile
    Rank: Guru
  22. spaperov

    55,822

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  23. radhakrishnan2007

    55,732

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  24. chakko

    53,161

    Master

    0 points yesterday

    Profile
    Rank: Genius
  25. cgaliher

    51,613

    Master

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame