Search The Site

Windows Server Core 2008 Commands Reference

To set up the registry for remote admin

  • Cscript C:\Windows\System32\Scregedit.wsf /ar 0

Enable Remote Administration

  • Netsh firewall set service remoteadmin enable

If you are using an older version of Terminal Services client, then you will need to drop the security levels on Server Core

  • cscript C:\Windows\System32\Scregedit.wsf /cs 0

To enable automatic updates

  • cscript C:\Windows\System32\Scregedit.wsf /AU 4

To list installed drivers:

  • Sc query type= driver

Installing a driver that is not included - Copy the driver files to Server Core:

  • Pnputil –i –a <path>\<driver>.inf

To use the Disk Management MMC snap-in remotely

  • Net start vds

To view main hardware/software details of core

  • Systeminfo.exe

Reset the administrator password

  • Net use administrator *

Restart core

  • Shutdown /r

To remotely find out if this server is a core build using WMI

  • wmic path win32_operatingsystem get OperatingSystemSKU /value

List of installed patches:

  • wmic qfe list

To List the installed roles

  • OCList

To install a role:

  • Start /w ocsetup <name of role>