映射驱动器的脚本 [英] Script to map drives

查看:128
本文介绍了映射驱动器的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的系统管理员进行了一些更改,以防止我们的虚拟机无法浏览到我们的服务器。这些机器不属于域。解决这个问题的方法是我们需要映射网络驱动器。但问题是
我们设置了许多环境,每个环境都设置了几个 快照。有没有办法我们可以运行脚本来映射驱动器,无论是登录还是快照还原都适用于所有快照?

解决方案

注意:下面方法不是产品特性,因此没有经过测试或支持。



我们有一个运行的脚本(OnRestoreSnapshot.bat)在每个快照还原。您可以在Common7 \IDE文件夹中找到此批处理文件。您可以添加cmds以在此处映射必要的驱动器。 


 


Allen Mathias




Our Sys admin has made some changes that prevent our virtual machines from being able to browse to our servers. These machines are not part of the domain. The work around for this was that we need to map a network drive. The problem though is we have many environments set up each with several snapshots. Is there a way we can run a script to map the drives either on login or snapshot restore that will apply to all snapshots?

解决方案

Note: The below approach is not a product feature hence not tested or supported as one.

Hi,

We do have a script (OnRestoreSnapshot.bat) that runs on each snapshot restore. You can find this batch file in your Common7\IDE folder. You could add in your cmds to map the necessary drive in here. 

 

Allen Mathias



这篇关于映射驱动器的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆