问题描述
我正在尝试使用 PowerShell 5.0 创建外部网络驱动器.我需要这些驱动器才能在我的电脑"中显示.为此,我正在使用此跟随命令.
I am trying to create a external network drive using PowerShell 5.0. I Need those drive to display in My Computer.For that purpose I am using this follow command.
New-PSDrive -Name "X" -PSProvider FileSystem -Root "\\192.168.0.1\hde_path" -Persist
这个命令有什么问题吗?因为根据我的理解,如果我使用 -Persist 它应该显示在我的电脑"窗口中.
Is there anything wrong with this command? Because as per my understanding if I use -Persist it is should be displayed in the My Computer window.
使用后,映射的驱动器 X: 没有显示在我的电脑中.
After using this, the mapped drive X: is not being displayed in My Computer.
提前致谢!
推荐答案
欢迎使用 Windows 10 以及强制用户帐户控制的无尽问题.
Welcome to Windows 10 and the endless problems of forced User Account Control.
您会注意到,如果您在计算机中映射网络驱动器,然后以管理员身份运行 PowerShell,您将无法访问这些驱动器.我认为反过来也是如此.
You will note if you map network drives in Computer then run PowerShell as admin, you cannot access the drives. I assume the reverse is also true.
不幸的是,没有办法关闭此功能",至少在不破坏其他所有功能的情况下无法关闭.你只需要管理你运行 PowerShell 的访问级别,映射网络驱动器必须在用户级别完成.
Unfortunately there isn't a way to turn off this "feature", at least not without breaking half of everything else. You just have to manage the access level you run PowerShell as, mapping network drives has to be done at the user level.
这篇关于映射的网络驱动器未显示在“我的电脑"中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!