WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

wntUserGetDat 524 Unable to access specified server

 Keywords:  wntUserGetDat 524 Unable to access specified server

Question:

I ran this line:
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.

Answer:

What resource did you connect to on the DC with wntAddDrive()? Was it the "IPC$" share, or some other share?

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.

User Reply:

I *usually* use IPC$ but noticed this time I'd specified C$. It worked for a couple years because all user were in the domain, or a trusted one.

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