When creating a vm there is a scripting section that has the option to select a file from an ADSF Path. How can I put files to an ADSF location?
Best answer by MrMike
This feature works differently between Linux and Windows. In windows it only adds the files to a cd drive that also includes an autounattend.xml file. The correct syntax for the destination is in unix format i.e if you want your file on the root of the disk you would prefix it with a / i.e /somescriptiwanttorun.cmd. or /somefolder/somescript.cmd. It will then come up as an E drive with the folder structure. You can call that location in your unattend file. If for some reason your vm config uses a different drive i.e you are using some clone with many drives, you would need to make a script that identifies the drive. i.e
$payloadDrive = (Get-WmiObject Win32_LogicalDisk -Filter "VolumeName='cidata'").DeviceID