The following post installation tasks can be done using the command line Server Configuration tool:
sconfig
- Join Computer to Domain/Workgroup
- Change Computer Name
- Add Local Administrators
- Configure Remote Management Options
- Configure Update Settings
- Downloading/Installing Updates
- Remote Desktop Options
- Network Settings
- Set Date and Time
- Log Off
- Restart the Server
- Shut Down the Server
Activate the Server:
start /w slmgr.vbs –ipk <productkey> start /w slmgr.vbs -ato
Turn off the Windows Firewall (Not Recommended):
netsh advfirewall set allprofiles state off
Display Available Server Roles:
oclist
Install the DHCP Server Role
start /w ocsetup DHCPServerCore sc config dhcpserver start= auto net start dhcpserver
Install the Hyper-V Server Role
start /w ocsetup Microsoft-Hyper-V
Install the Web Server Role
start /w pkgmgr /iu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel
Install the Web Server Role (All Options)
start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-FTPPublishingService;IIS-FTPServer;WAS-WindowsActivationService;WAS-ProcessModel
Enable/Install the SNMP & Telnet Client Features
start /w ocsetup SNMP-SC start /w ocsetup TelnetClient -or- Dism /online /enable-feature /featurename:SNMP-SC Dism /online /enable-feature /featurename:TelnetClient
Disable/Remove a Feature
start /w ocsetup SNMP-SC /uninstall start /w ocsetup TelnetClient /uninstall -or- Dism /online /disable-feature /featurename:SNMP-SC Dism /online /disable-feature /featurename:TelnetClient