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)

PageFile:

wmic pagefile list /format:list

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

Install Windows Features:

https://technet.microsoft.com/en-us/library/jj205467(v=wps.630).aspx

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

 

Uninstall applications:

Applications can be uninstalled from the command line by pulling the command from this registry key:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Open the UninstallString key to get the command

 

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