In most installations, EMS is enabled by default, but in Nano Server this must be enabled when creating the image so you can use it when needed.
First you need to create a Nano Server image. See Chapter 3, Deploying Nano Server in a Virtual Machine and on Physical Hardware, for more details.
There are a couple of ways to enable EMS on Nano Server. We can use Windows PowerShell or DISM combined with Bcdedit.