Windows沙盒 sandbox 实际应用案例 1 2 背景: 打印机联机认证服务为 理光的格兰林,删除已注册的IC卡,需要使用IE访问后台,但是需要flash player支持。目前flash player已经全面停止支持,且含有大量捆绑软件,不适用于安装在物理机上。
综合实际情况使用Windows自动的沙盒app,可以完美的解决该问题。
微软文档 参照微软 学习中心文档 Windows 沙盒配置 | Microsoft Learn
编写批处理 先编写批处理文件用于登录执行安装flash player
1 2 3 4 @echo off net use \\UNC路径 "你的密码" /user:你的域名\你的用户名 xcopy \\UNC路径\flashplayer.exe C:\users\WDAGUtilityAccount\Downloads\ C:\users\WDAGUtilityAccount\Downloads\flashplayer.exe /verysilent /suppressmsgboxes
将批处理文件放于C:\SandboxScripts下
编写沙盒配置文件 1 2 3 4 5 6 7 8 9 10 11 12 <Configuration > <MappedFolders > <MappedFolder > <HostFolder > C:\SandboxScripts</HostFolder > <SandboxFolder > C:\Users\WDAGUtilityAccount\Downloads\sandbox</SandboxFolder > <ReadOnly > true</ReadOnly > </MappedFolder > </MappedFolders > <LogonCommand > <Command > C:\Users\WDAGUtilityAccount\Downloads\sandbox\flashplayer.bat</Command > </LogonCommand > </Configuration >
将文件保存为.wsb 格式的文件
运行 双击执行flashplayer.wsb运行Windows沙盒,测试配置是否成功
验证成功