Windows Server Core

Server Core Administration
Starting the Server Configuration Utility

sconfig

Joining/Removing the Server from a Domain

Renaming the Server

Adding a User to the Local Administrators Group

Enabling or Disabling Remote Management (MMC, Server Manager MMC Snap-in and PowerShell)

Configure Windows Update Settings

Downloading and Installing Updates

Enabling or Disabling Remote Desktop

Configuring Network Settings

Configuring Date and Time Settings (Date/Time, Time Zone and Internet Time Server Synchronization)

.NET Framework
Installing and Enabling .NET 2.0 (x64)

dism.exe /online /enable-feature /featurename:NetFx2-ServerCore

Installing and Enabling .NET 3.5 (x64)

dism.exe /online /enable-feature /featurename:NetFx3-ServerCore

Installing and Enabling Server Core Features (x86)

dism.exe /online /enable-feature /featurename:ServerCore-WOW64

Installing and Enabling .NET 2.0 (x86)

dism.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64

Installing and Enabling .NET 3.5 (x86)

dism.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64

Accessories
Open a New Command-Line Window

start "" cmd.exe

Open a Text File with Notepad

notepad.exe "C:\Path\file.ini"

Open Task Manager

taskmgr.exe

Open the Registry Editor

regedit.exe

Domain Management
Promoting a Domain Controller (DC) and Creating a New Domain and Forest

dcpromo /unattend /InstallDns:yes /confirmGC:yes /replicaOrNewDomain:domain /newDomainDNSName:domain.local
/newDomain:forest /safeModeAdminPassword:VerySafe*123*Password /rebootOnCompletion:yes

Promoting a Domain Controller (DC) to an Existing Domain

dcpromo /unattend /InstallDns:yes /confirmGC:yes /replicaOrNewDomain:replica /replicaDomainDNSName:domain.local
/safeModeAdminPassword:VerySafe*123*Password /userDomain:domain.local /userName:Administrator
/password:Super@Admin*Password /rebootOnCompletion:yes

Forcefully Removing a Computer from the Domain

netdom remove <COMPUTER_NAME> /Domain:domain.local /Force

Firewall
Disabling the Local Firewall

netsh advfirewall set allprofiles state off

Hardware Drivers
Listing Installed Hardware Drivers

pnputil -e

Adding and Installing Hardware Drivers

pnputil -i -a driver.inf

Hyper-V (PowerShell Commands)
1) Find a Specific Virtual Machine and Return all the Properties as an Object

powershell.exe

[String] $VirtualMachineName = "VM_NAME";

$VM = get-wmiobject -query "SELECT * FROM Msvm_ComputerSystem WHERE ElementName=’$VirtualMachineName’"
-namespace "root\virtualization" -computername ".";

2.a) Starting or Powering On the Virtual Machine

$VM.RequestStateChange(2);

2.b) Stopping or Shutting Down the Virtual Machine

$VM.RequestStateChange(3);

2.c) Restarting the Virtual Machine

$VM.RequestStateChange(10);

MSI
Install an MSI package using Windows Installer

msiexec.exe /i "C:\Path\package.msi"

Uninstall an MSI package using Windows Installer

msiexec.exe /x "C:\Path\package.msi"

Product Key and Activation
Registering the Windows Product Key

slmgr -ipk ABCDE-12345-FGHIJ-67890-KLMNO

Activating the Server Operating System

slmgr -ato

Session Management
Logging the Current User Off

logoff

Restarting the Server

shutdown /r /t 0

Shutting Down the Server

shutdown /s /t 0