Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntUserGetDat 524 Unable to access specified server
theflags=wntUserGetDat(DC,userSAMAccountName,"flags",0)
and get this error WIL Extender Error: 524:Unable to access specified server.
in the code above, DC = \\10.2.2.2 so name resolution isn't the problem.
It works when I'm on the domain in question but not from a non-domain PC. I tried using wntAddDrive() to connect to the domain controller with the same results; works only when I'm on the domain.
Can I specify the ID for wntGetUserDat to use?
Let clarify. wntAddDrive() succeeds to connect to the DC but having done so, wntUserGetDat still fails. My assumption is is uses the credentials of the current user context whereas wndAddDrive allows you to specify an ID.
Had you previously accessed the DC such that you already had a different set of network credentials as compared to the ones that you were trying to pass in to wntAddDrive()?
Typically, if you don't have network credentials established w/a particular remote [and possibly in an untrusted domain] system, and you connect to the "IPC$" share with a set of credentials that are valid for the target system, then all Windows RPC function calls used for remote management will use the network credentials that you supplied.
Using IPC$ appears to work. I sent it to another remote user to test, which was easier than rebooting my PC...
Article ID: W18004
Filename: wntUserGetDat 524 Unable to Access Specified Server.txt
File Created: 2009:11:24:10:40:08
Last Updated: 2009:11:24:10:40:08