获取映射驱动器 [英] getting mapped drives
本文介绍了获取映射驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用c#编写一个应用程序,其中首先我冒充用户,然后我想检索映射的驱动器。
>
但问题是当我按以下顺序调用方法时:
1.创建类的对象
2.调用mappeddrives()方法
3.调用模拟方法
然后工作正常。
但是如果我在调用mappeddrives()之前调用impersonate方法那么它不给我映射驱动器列表。
获取映射驱动器的代码是:
Hi all,
I am writing one application using c# in which firstly I m getting impersonating the user and then i want to retrieve mapped Drives.
But issue is when I am calling method in following sequence:
1. create object of class
2. call mappeddrives() method
3. call impersonate method
then its working fine.
But if i m calling impersonate method before calling mappeddrives() then its not giving me list of mapped drives.
my code for getting mapped drives is :
展开 | 选择 | 换行 | 行号
推荐答案
模拟用户不会运行他们的登录脚本,其中映射的驱动器将是否已创建?
只是猜测
Impersonating a user does not run their login script, where mapped drives would be created?
Just a guess
我没有创建映射驱动器。只需检索已映射的驱动列表。
还有一点 - 当我在IIS中部署我的应用程序时,它在任何一种情况下都没有为我绘制映射驱动器列表。
谢谢,
Anu
im not creating mapped drives. just retrieving the list of mapped drived.
And one more point - when i deployed my application in IIS, its not gibving me mapped drive list in either case.
Thanks,
Anu
用户登录时映射映射的驱动器。如果用户尚未登录,则不会映射驱动器。
Mapped drives are mapped when a user logs on. If the user has not logged on, the drive is not mapped.
这篇关于获取映射驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文