Windows Server Core - LucianCumpata/DevOps GitHub Wiki

  • Enable RDP Log in into Windows Server Core and run the scregedit.wsf script located in %windir%\system32\scregedit.wsf

cscript %windir%\system32\scregedit.wsf /ar 0

You can check the registry setting by typing:

cscript %windir%\system32\scregedit.wsf /ar /v

  • Download a file using BITS

First you must add BITS module support in powershell or ps1 script: Import-Module BitsTransfer

Then to download use the below command:

Start-BitsTransfer –source $source -destination $destination

Example:

Start-BitsTransfer -source https://download.microsoft.com/download/1/0/5/1059800B-F375-451C-B37E-758FFC7C8C8B/WindowsAdminCenter1904.1.msi -destination C:\Users\Administrator\Downloads

  • Install Windows Admin Center from PowerShell

You must run the WAC installer silently using a local administrator account:

msiexec /i c:\Users\Administrator\Downloads\WindowsAdminCenter1804.msi /qn /L*v log.txt SME_PORT=443 SSL_CERTIFICATE_OPTION=generate

SME_PORT is the PORT where the WAC will be accessible from your computer. Microsoft now recommends ports 5985 and 5986 (and if you use the GUI installer, it will use those ports)

SSL_CERTIFICATE_OPTION=generate will let you generate a self-signed SSL certificate

After installation is complete, go to Windows Server Core IP address or DNS address and WAC should greet you.