Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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.
 
Share this answer
 
Comments
Ajesh Novell 19-Sep-11 5:33am    
Ya thats my question....I want a proper mechanism to retrieve the cache information that window is storing...For example If a AD user say "testuser" logs in successfully, then network goes down....then I needed to query the information for "testuser" i.e his domain information , upnname etc...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900