The New-NanoServerImage supports an extended set of advanced parameters as well:
- -MaxSize: If you need larger images, you can supply -MaxSize to create a larger, dynamically expanding VHD(X) (that is, MaxSize 100 GB). If you don't use this parameter, the default disk size is 4 GB.
- -LogPath: This parameter sets the location where you want to save the logs created while building the Nano image.
- -EnableRemoteManagementPort: If you need to open port 5985 for inbound TCP traffic to connect using WinRM from a different subnet.
- -MergePath: If you need to embed your own script or binaries into the Nano Server image, you can supply -MergePath to copy a file or a directory into the root of the image (that is, -MergePath .\tools