Here I share information on Server Core event June 2 at the MUG.
First a list of commands that I use regularly to configure your computers with Server Core. R2 Remember that some things work differently.
First a list of commands that I use regularly to configure your computers with Server Core. R2 Remember that some things work differently.
Initial Setup
Red List plates netsh interface ipv4 show interfaces
Show information
IPv4 address netsh interface ipv4 show
Configure static IP netsh interface ipv4 set address name = ID source = static address = ipadress mask = gateway = ipdefaultgateway
IPMask
Configure DNS Server
dnsservers September netsh interface ipv4 "Local Area Connection" static 10.0.0.1 primary
Rename the computer
netdom renamecomputer% ComputerName% / NewName: NewComputerName
Join computer to the domain
netdom join% ComputerName% / domain: Domain
/ userd: DomainUser / passwordd: *
Disable Firewall netsh firewall set opmode disable (in Windows 2008)
advfirewall September netsh currentprofile off state (On Windows 2008 R2)
Basic Configuration
Install
Role (DHCP in Windows Server 2008)
start / w ocsetup DHCPServerCore
dhcpserver sc config start = auto net start dhcpserver
Install Role (DHCP in Windows Server 2008 R2)
Dec / online / enable-feature / featurename: DHCPServerCore
dhcpserver sc config start = auto net start dhcpserver
To set alternate credentials set on a computer to connect to a computer that is not in the same domain.
cmdkey / add:
Management Commands
desk.cpl Control - View and configure display settings.
Intl.cpl Control - View or set regional and language options control sysdm.cpl
- View or set system properties.
timedate.cpl Control - View or set date, time and time zone. Cscript
slmgr.vbs-ato - On the operating system.
DiskRaid.exe - View or set up software RAID.
ipconfig / all - Displays IP information
pnputil.exe - Install or upgrade hardware device drivers.
Sc query type = driver - list device drivers.
ServerWerOptin.exe - Configure Error Reporting.
SystemInfo - List details of configuration.
WEVUtil.exe - Event Management
View WMIC datafile WHERE name = "FullFilePath" get version - Displays the version of a file. WMIC
nicconfig index = 9 call EnableDHCP - Configure using DHCP. WMIC
nicconfig EnableStatic index = 9 call ("IPAddress") ("SubnetMask") - Set a fixed IP. WMIC
nicconfig setgateways index = 9 call (GatewayIPAddress ") - Set the Default Gateway. WMIC
product get name / value "- MSI installed list sorted by name. WMIC
product WHERE name = "Name" call uninstall - Uninstall an MSI application. WMIC
qfe list - List installed updates and hotfixes
WUSA.exe PatchName.msu / quiet - Apply a hotfix or update the operating system.
To learn more ...