Consistently call upon usb drive in unattend.xml to run netsh wlan add profile path

429 Views Asked by At

I'm looking for a way to call upon the path of a file that is located on a USB drive where the letter may change depending upon the PC it is inserted into. This is for unattend.xml file under the FirstLogonCommands.

  <SynchronousCommand wcm:action="add">
        <Order>2</Order>
        <CommandLine>netsh wlan add profile filename="E:\Wi-Fi-Example.xml"</CommandLine>
  </SynchronousCommand>

(Not sure if it matters but I use one USB drive with the Windows install and another USB drive for answer files)

0

There are 0 best solutions below