映射驱动器存在问题 [英] Mapping drives in aZure problems

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

问题描述

我目前创建了一个VM服务器,它也是一个域和文件服务器。然后我创建了一个WM工作站并将其连接到域并尝试手动映射驱动器,但每次重新启动工作站时,映射的驱动器都会消失。

I currently created a VM server which is also a domain and file server. Then I created a WM workstation and join this to the domain and try mapping the drive manually but every time I restart the workstation the mapped drives disappears.

我在netlogon上创建了一个批处理脚本自动挂载映射但不起作用。任何解决方案或替代方法吗?

I created a batch script on the netlogon to auto mount the mapping but does not work. Any solutions or alternate way to do this?

推荐答案

你检查了吗?复选框"登录时重新连接"在创建地图网络驱动器时?

Did you checked the checkbox "Reconnect at sign-in" while creating the Map Network drive?

您也可以使用该脚本来完成这项工作。以下脚本用于从存储帐户映射网络驱动器。我们也可以使用相同的脚本来安装您的网络驱动器。

You can also use the script to do that job. The below script is used to map a network drive from storage account. We can use the same script to mount your network drive as well.

# To test the connection
Test-NetConnection -ComputerName "<fileserver hostname>" -Port 445
# Save the password so the drive will persist on reboot
Invoke-Expression -Command "cmdkey /add:<fileserver hostname> /user:<domain\username> /pass:<user's password>"
# Mount the drive
New-PSDrive -Name Z -PSProvider FileSystem -Root "\\<fileserver hostname>\<sub paths>"

用实际值替换尖括号中的项目(例如< fileserver hostname>)。

Replace the items in angle brackets (example <fileserver hostname>) with the actual values.

试试看,告诉我


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

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