脚本改变家庭驱动器 [英] script to change home drive

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

问题描述

所以我在DC1上有家用驱动器。我希望它在启动时重新映射到DC2上的主驱动器。 bat或ps1的例子都不错。谢谢。

So I have home drive on DC1. I would like it to be remapped to home drive on DC2 upon boot. Either bat or ps1 example would be good. thanks.

MK

推荐答案

我们不写脚本给你。给出一些注意事项,我们会根据需要帮助您进行更正。

We don't write scripts for you. Give something a shot and we'll assist you in corrections as needed.

为了帮助您入门,请尝试在Powershell中使用Remove-PSDrive和New-PSDrive cmdlet:

To get you started, try using the Remove-PSDrive and New-PSDrive cmdlets in Powershell:

New-PSDrive

Remove-PSDrive

New-PSDrive
Remove-PSDrive

或带有"net use"的简单bat文件

or a simple bat file with "net use"

https:/ /technet.microsoft.com/en-us/library/bb490717.aspx?f=255&MSPPError=-2147217396

我们很乐意提供帮助,但我们赢了不为你工作。

We're happy to assist, but we won't do the work for you.


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

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