根据Microsoft官方doc,我们需要建立一个以.wsb为拓展名的配置文件,内容如下。
<Configuration>
<VGpu>Disable</VGpu>
<Networking>Disable</Networking> #网络,建议关闭
<MappedFolders>
<MappedFolder>
<HostFolder>G:</HostFolder> #要映射的文件夹绝对路径
<SandboxFolder>C:UsersWDAGUtilityAccountDownloads</SandboxFolder> #沙盒中的绝对路径
<ReadOnly>false</ReadOnly> #只读
</MappedFolder>
#...可继续增加
</MappedFolders>
<LogonCommand>
<Command>explorer.exe C:usersWDAGUtilityAccountDownloads</Command>
</LogonCommand>
</Configuration>
No responses yet