注销时连接到局域网中的网络驱动器 [英] Connect to network drives in lan when logged off

查看:97
本文介绍了注销时连接到局域网中的网络驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我已经完成了一个C#程序,该程序需要在用户注销(或不注销)时访问LAN中的网络驱动器.

如果我们通过VNC创建远程计算机的网络驱动器,则该程序运行良好,但如果我们使用远程桌面,则该程序将无法正常运行.

有谁知道它为什么会以这种方式做出反应以及是否还有其他解决方法,因为我无法在各处放置VNC服务器...

我已经读过一些Google结果,当用户注销时可能是安全问题.在那种情况下,我想知道为什么它可以通过VNC工作...

预先感谢,

geam666.

Hello,

I had done a C# program which needs to access network drives in a LAN when the user is logged off (or not).

The program works well if we create the network drive of the distant machine through VNC but not if we use Remote Desktop...

Does anyone know why it would react in such a way and if there is other workaround because I cannot put VNC servers everywhere...

I had read on some Google results it could be security issues when the user is logged off. In that case I wonder why it works through VNC...

Thanks in advance,

geam666.

推荐答案

因为您已将VNC服务器配置为可以不需要任何人登录的服务运行.这是否一件好事取决于您问谁.为什么需要使用VNC创建网络共享?您应该能够简单地在资源管理器中映射驱动器并完成它.
Because you''ve configured the VNC server to run as a service which doesn''t need anyone to be logged on. Whether that''s a good thing or not depends on who you ask. Why do you need to use VNC to create a network share? You should be able to simply map a drive in Explorer and be done with it.


感谢您的答复.

现在我知道为什么它通过VNC起作用了.

我希望可以这样做,尽管我没有对远程计算机或访问权限的足够权限(即使它在我们的局域网中并且我们的管理员非常忙),所以我不得不使用远程桌面...

关于VNC,这是一项测试,旨在了解我是否处在寻找问题的正确路径上:我已经以管理员身份在多台计算机上创建了共享,并且在VNC中创建共享时效果很好,但是当我使用远程桌面时,仅用于远程会话,共享甚至无法通过VNC看到...

如您所说,如果我可以真正访问该机器,它将更简单...

PS:对不起,我的英语...
Thanks for your reply.

I understand now why it worked through VNC.

I wish I could do so, though I don''t have enough rights on distant machine nor access (even if it''s in our lan and our administrators are quite busy), so I had to use remote desktop...

About VNC, it was a test to know if I was on the right path to find out my problem : I had created shares on several machines as administrator, and when they were created in VNC it worked well but when I had used Remote Desktop it only did for the Remote session, the share wasn''t even visible through VNC...

As you said, it would be more simple if I had real access to the machine...

PS : Sorry for my English...


这篇关于注销时连接到局域网中的网络驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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