{% extends "base.html" %} {% block title %}startnet.cmd Editor - PXE Server Manager{% endblock %} {% block extra_head %} {% endblock %} {% block content %} {% if not wim_exists %}
boot.wim not found at {{ wim_path }}. Run the PXE server setup playbook and import WinPE boot files first.
{% if snapshots %}
Snapshots

boot.wim is missing, but prior startnet.cmd snapshots are still on disk. Restore is unavailable until the WIM is present.

{% endif %} {% else %}

Boot Settings

These edit only their targeted lines in startnet.cmd. Leave a field blank to keep the current value. Everything round-trips through the same boot.wim as the Raw tab.

Address startnet.cmd maps the winpeapps share from.
Whole seconds before the default menu entry auto-selects.
The entry chosen when the timeout elapses.
WIM Info
{% for key, val in wim_info.items() %} {% if key in ['Image Count', 'Compression', 'Total Bytes', 'Image Name', 'Image Description'] %}
{{ key }}
{{ val }}
{% endif %} {% endfor %} {% if not wim_info %}

Could not read WIM info.

{% endif %}

Boot Menu Entries

Appending a new image at the end always works. Reordering or removing an entry whose number the enrollment %choice% router cross-references may be refused by the server to keep numbering in sync - if so, the raw text is left untouched and the reason is flashed.
Windows\System32\startnet.cmd
Editing startnet.cmd inside {{ wim_path }}
Common startnet.cmd Commands
wpeinitInitialize WinPE networking
net use Z: \\172.16.9.1\winpeappsMap Samba share for deployment
wpeutil WaitForNetworkWait for network to be ready
Z:\gea-standard\Deploy\Tools\deploy.cmdLaunch deployment script
Lint {% if lint.errors %}{{ lint.errors|length }} err{% endif %} {% if lint.warnings %}{{ lint.warnings|length }} warn{% endif %}
{% if not lint.errors and not lint.warnings %}

No issues found.

{% else %}
    {% for e in lint.errors %}
  • {{ ('L' ~ e.line) if e.line is not none else '--' }} {{ e.message }}
  • {% endfor %} {% for w in lint.warnings %}
  • {{ ('L' ~ w.line) if w.line is not none else '--' }} {{ w.message }}
  • {% endfor %}
{% endif %}
WIM Info
{% for key, val in wim_info.items() %} {% if key in ['Image Count', 'Compression', 'Total Bytes', 'Image Name', 'Image Description'] %}
{{ key }}
{{ val }}
{% endif %} {% endfor %} {% if not wim_info %}

Could not read WIM info.

{% endif %}

Snapshots

Every save snapshots the prior startnet.cmd first. Diff a snapshot against the current boot.wim, or restore it (restoring also snapshots the current copy first).

{% if not snapshots %}

No snapshots yet.

{% else %}
{% for s in snapshots %} {% endfor %}
Timestamp Size Note Actions
{{ s.timestamp }} {{ '%.1f'|format(s.size / 1024) }} KB {{ s.note or '-' }}
{% endif %}
{% endif %} {% endblock %} {% block extra_scripts %} {% if wim_exists %} {% endif %} {% endblock %}