没有网络时如何获取有关AD用户的域信息? [英] How to get Domain information about AD users when there is no network?

查看:91
本文介绍了没有网络时如何获取有关AD用户的域信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用NetWkstaGetInfo(),TranslateName()和NetGetJoinInformation()API来查询AD用户的信息,例如获取远程服务器的计算机名称,将域名转换为其他格式等.当我连接到这些API时,它们可以正常工作网络,但是当我的网络出现故障时,这些API会失败.

根据Windows架构,如果我在本地工作站的域中登录用户,则Windows实际上会将整个信息缓存到本地工作站(即LSA)中.

我想知道是否有类似于NetWkstaGetInfo(),TranslateName()和NetGetJoinInformation()的API,它们可以在网络不工作时帮助获取Windows缓存的域用户信息?我的主要目标是将UPN名称转换为Netbios名称等


谢谢与问候
Ajesh Issac

Hi,

I am using NetWkstaGetInfo() , TranslateName() & NetGetJoinInformation() API to query information for AD users like get the computer name for the remote server, convert upnames to other formats etc. These API''s works fine when I am connected to network but when my network is down, these API''s fails.

As per the windows architecture, if i do a login to user in a domain in my local workstation, windows actually caches the whole information to the local workstation i.e in LSA.

I want to know if there are API''s working similar to NetWkstaGetInfo(), TranslateName() & NetGetJoinInformation()which can help to get the domain users information cached with windows when my network is not working? My main objectives are to convert UPN names to Netbios names etc


Thanks & Regards
Ajesh Issac

推荐答案

成功登录了Windows登录名(因此您可以在网络中断时使用计算机),但是访问Active Directory信息需要有效的网络连接.
Successful Windows logins do get cached (so you can use your computer when the network is down), but accessing Active Directory information requires an active network connection.


这篇关于没有网络时如何获取有关AD用户的域信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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