Managing Windows Server Core from the command line

Commands for managing a Server core instance form the command line…

Disk Space:

wmic logicaldisk C: get caption,size,freespace (all values in bytes)


wmic pagefile list /format:list

wmic pagefileset set InitialSize=4096,MaximimSize=8192 (all sizes in MB)

Install Windows Features:

Change startup of windows services:

sc config {service name} start=auto|demand|disabled

User Profiles

rundll32.exe sysdm.cpl,EditUserProfiles

Change Drive Name

LABEL drive: newname

LABEL /MP volume newname

This entry was posted in SQL on Server Core. Bookmark the permalink.