You are on page 1of 7
2nime0%7 Managing and Coniguring a Server Core Installation | Installing Windows Server 2012 and Server Gace | form IT Je Orig Stns Seer > Mico er, Installing Windows Server 2012 and Server Core 28) Rand Mount, Andrew Abbate Chis Amaris, Omar Drow, Michael Noe, Guy Bring bona ie This chapter is from the book Windows Serer 20:2 Unleashed Managing and Configuring a Server Core Installation ‘The flowing sections cover general atk atsciated with managing and congring Serve Core sytem vi the command prompt after the instalation is complete As analtemative, an adminitator ‘can use the SCONFIG wily configure general setigs. Launching the Command Prompt in a Server Core Installation Remember the Stat menu doesnot ext, Because ofthis, one of the most Important teks admiistvator must understand when managing a Sever Coe installations how to aunch 3 2. Press crvaeDeet 2. Selec Start Tac Manager 5. On the Windows Task Manager sree, slat Fl, New Task (Run) {none Create New Task dag bos, ype powershelLete, and thea ck OX Changing the Server Core Administrator's Password Aor hentia pasiwors as been set, the stata chan te administrator passwords oll _Ator he command hasbeen exeutes, you ar pomple to types password forthe use Ener he password an then retype forthe confirmation proces tea Best practice to use a complex sassword when assigning passwords tothe admin ‘the server wil rquie complex passwords ator acount atthe default password poly on ‘Changing the Server Core Machine Name ‘er the Server Core instalation s complete another common tasks to change the machine name of ‘the server By default, Windows automataly generates and signs Server nama staring with WIN Iiipihwwweformitcomiartcestartcle asp?p=19476988seqNum=5 Related Resources Store | amicies | Blogs Exam Ref 70-740 Installation, ‘Storage and Compute with ‘Windows Server 2016 By Craig Zacker Book $31.99 Exam Ref 70-741 Networking with Windows Server 2016, By Andrew Warren Book $31.98 Exam Ref 70-744 Securing Windows Server 2016 By Timothy L. Warner, Craig Zader 800K $31.99 w iT0t7 Managing and Coniguring a Server Core Installation | Installing Windows Server 2012 and Server Gace | form IT and followed by a string of characters The syntax to change the Server Core mi ne name follows netdom renaneconputer /newnane: cNewCo -ostname which can be found sing the hostname command and the argument wth the new machine name fr the Server ore rslaton, Changing the server name fom ‘Win 123 to ARCDC® i gepcted inthe following evap rnetdom renaneconputer Win-123 /newnane:ABCOCZ ‘Assigning a Static IPV4 IP Address and DNS Settings [Another common Server Core management taskis assigning an IP adress, including the primary and secondary ONS settings. afore this task canbe cxecute, you must run the following command > ‘btn and identity the names ofthe nwark interfaces installa onthe server Tis inches captring ‘the unique 0 assocated with each network inate. To dspla a st of network nterfes,ncludng ‘their respective unique IDs, run he foowing conan: Neteh commands can usualy be abbravitd to make typing easier ance the administrator is Netsh Int dpv# sh int ‘The nxt stp is to make a note ofthe network interface name and unique 19 that you must charge netsh interface {pva show interfaces command, sdsplayed in Eure 38 ute 38, Reviewing lon 1D fora network interface, hip dew ieformi.comiartcesiartcleaspx?p=1947698&seqNum=5 on 2nmo17 Managing and Configuring a Server Corenstalation | Installing Windows Server 2012 and Server Gace | form IT you plan to change the addess setingson mare han one interface take note athe Intariacerames an unique 10 Now thet you have captured the names an Ds, se the following syntax to change the IP ares for esd intetace: netsh interface pvt set address nane="<10>" sourcenstatic addres: fepace te argument with the network interface name or dares, subnet mask, and taut gateway n subsequent arguments, 5 flows netsh interface pvt set address nan The nl step when configuring the network nterface so entra primary and secondary ONS entry forthe crface. Oo thisby using he following syntax: netsh interface ipvt adé dnsserver nane="* addresse sndexe ‘Te sme command is vied and repeated when entering more than one ONS entry: However, increment the infox each ime, When fale, run P Conf alt very the I adress sets ‘The same funesion canbe performed using owershel with the following commands Set-netiPaderess “Inter faceIndex 32 -IPvsAddress 192.168,215.10 - wpefaultcatensy 192.168.135.1 ef axcene® ‘Adding the Server Core System to a Domain Netdom join /domain: /0U: /userd:\cu Zpasswordd:* The same function can be performed using Powershell ith the following commands: ‘Add-Conputer -donaiamane -oUPath “oueQU, ~Donain, OC ‘Activating the Server Core System Iiipihwwweformitcomiartcestartcle asp?p=19476988seqNum=5 ar 2nime0%7 Managing and Coniguring a Server Core Installation | Installing Windows Server 2012 and Server Gace | form IT slmgrvos-ipkeproduetiey> ‘er he produc kay has bee sucesfly entered, you atvate the serve by typing the flowing simgrves-ato Using SCONFIG to Configure a Server Core Installation [As mentioned previously, Windows Server 2012 includes a tlity to make the in configuration ora core instlason easier The SCOMFG uty, which hasbeen avalable See Windows Server 2008 82, 5 ‘very ea to se ands usualy the preferred configuration option scripting tno cequied, ‘The sity canbe executed by running song erin he core instalation command prompt and resents the sto options shown in igure 39. HHgure 39, SCONFIG ust, Server Core Roles and Feature Installations “The typi! Windows server roles an Be configredon a Server Cor instalation Theftowing server role re crrenty supported on a Server Core instalation + eave Directory Certeae Serves + esveDretory Domai Series (A025) + Acove Directory tightwoight Directory Serves AD 108) + Acove Directory Rights Management Server ic Server Fle and storage Services Hyper Prin and Document Services emote Acces Server Remote Desttop Services (partial suppor) + Connection Broker + Leersing + irualiation Host only + Volume sation Serves Web Server (8) + Windows Deployment Services + Windows Sofware Unate Services “The following ae some ofthe featres that are also supported ona Server Core installation: + NET Frameworks + BtrS compact Sener + ‘BtLocker Dive Encryption Branehcache Failover Custering + Group Policy Management + Adaress Management (PAM Server + Mutipath yo 1+ Network Load Balancing Iiipihwwweformitcomiartcestartcle asp?p=19476988seqNum=5 2nime0%7 Managing and Coniguring a Server Core Installation | Installing Windows Server 2012 and Server Gace | form IT emote Server Adminstration Tools paral) + Simple Network Managemen Protocol SNMP) + Tenet cent The flowing command Issa the potential server oles and associated features: ‘lm oni ge atures /armattabie ‘The OcSetup command tine program fail from earlier version isl avaiable (out deprecated) for ting up and configuring the server oes and features ona Server Cae inetalistion, You cn configure ‘the Setup command:-ine options using the flowing syntax esetup.exe {/2) {Jh] [/help] component [/log:File] [/nerestart] [/passive] [sanattendfile:file} [/oninstall] [/x: parameter] ‘able 33 describes each ofthe options that ae avalable when using the OCSetup commanding propa. Table 3.3 Available Command Option for OCSetup Parameter Description 17, 1% Phe9 | Gaping athe options aaable fr OCSetp cenponert Represents ha name ofthe cormponent ou plan on nstaling, such as AS, DNC, Web Serer i), and more ‘gettne Species the gH oeaton you do not want to take advantage of he efatocation rorestart Does not eboot the computer ater the stallion Ipsstve ‘Suppresses unnecessary nos and ony includes progress status deste Does not require user interaction Junateanasseseie | Requie adtiona onfigurations nears Femoves server components ‘ye: paraneter | Supplies addnalcontguaion parameters Using Powershell to Install a Server Role on a Server Core installation Inaction to Setup, Powershell canbe set instal eles an features, flows 2 fun Powershell by executing powersellee inthe command prompt 2. Run inport-nodule servernanager to enabe Server Manager features within the Powershellsesion 3. Use Got-indowsFeature to idem installed ne avaabe roles and fetus. 4. Use Ade-indowsFeature to a6 the required role or fetue, Table 3. outines2n ramp of common server ol nstaltion using Add-kincowsrenture, Iiipihwwweformitcomiartcestartcle asp?p=19476988seqNum=5 2nime0%7 Managing and Coniguring a Server Core Installation | Installing Windows Server 2012 and Server Gace | form IT Table 3.4 Server Role installation Command Lines with Powershell Server Role command NS Server role Add ncovatentare ON HCP Server role at inconrestare OEP Fie Serverro'e sasatacoatentae Fsle-Sarvices Print Server ole std ncontenture Prin-server ‘Aetv rectory Lightweight Directory Server role | ase-uincowsteatare ADLas Windows Server Undate Serves role ablncovsontare Updetaservces Web server) role ab inconsostare wedserver Hyper oe habatnconieatare Wyper ‘he previous section ra prelude te some of the common Sever Core commandsne arguments fr ‘nealing and confgring elements ona Windows Serve 2012 Server Cor instalation For flit of ‘command:ine arguments, the Mcresot webste and conduct serch fr Windows Server 2032 Installing the Active Directory Domain Services Role Insalation of ADDS more complen an vil te the operation ofthe ervicanment and therfore deserves more detailed attention, Installason ofthe role ung Rda-WindowsFeature AD-donain~ ‘eevee wil install he required binaries bu not configure the server a3 domain controle, Ineatler versions, the recommended tool for thats he deprome uty. The problem i that eprom oxmally stats wizard with GUI that snot supported on Server Core. result the deprome sliy on Serve cove is commandsne uty that eau put by suplyng the operation paramater by using an answer le ‘Tha decom uty can accept more than 30 different operation parameters. Although ths might seem the 2 dzyng ar of options few commandlines wil use a of tem. Refet the TechNet eprom command reference 2 htpy/Rechnet microsoft com/en-s/ibrany/ce7328871VS.101 5p for complet ist and exlanation ofeach parameter You can use this ference to Bld the evect ‘éepromo command ine or crete an unatend fle sutable or your cre domain contre [As with many other asses ofthe operating syste, Windows Server 2012 provides PowerShell support to perform that same functor. 8rometing a domain contol using Powershal s very convenient and s based on the ADDSDeployment module, whch includes the flowing commands + IntlhapDsForest + InsalbADDSDomain + InsalbADDsoomaincontroler ‘These commands ave avaiable by fist ooding the appropiate module using Taport-Rodule ‘o0SDeployment. Then, al hit’ requied using the core conmmand rom abowe depending 39 ether the gol is to deploy anew forest adds domain oan ening forest, or ad daria contralto an exiting domain. lhe commands accept the required parameter, which ou an scover by ssng the Get-Help emt For ecampl use the following command to atthe syntax forthe Insta] -ADDSForest dle Getty nstal A00SForest iipihwwweformitcomiarticlestartle aspx 7p=18476988seqNum: 2nime0%7 Managing and Coniguring a Server Core Installation | Installing Windows Server 2012 and Server Gace | form IT ‘Then, using the folowing syntax tonsa anew Windows 2012 forest witha rot domain called becom InstalL-ADosForest -ForestMade "kin#* -DanalnMode “Win# -Danainilane “abe.co DomaienetSTOsName “ABC” -DatanosePath “C:\Windows\NTDS* -LogPath °C: \Window “sySvOLPath “C:\Windows \SYSWOL™ ~InstalIONS:$true ~CreateDXsbelegation: $31 “Reosctonconpletion:$true -Force:$erue ‘ouwil e prompted forthe safe mae bot password, and the forest willbe erated. The server Pewee Msnetey hiipihwwweformitcomiartcestartcle aspx ?p=19476988seqNum=5 a

You might also like