We have a number of windows servers which are not part of a domain.
Each server has its own set of login credentials.
We need to be able to remotely check that the credentials we have for each machine is correct by making a windows API call to detect if our login credentials are correct.
We know the IP address of the remote machine, and the login name and password.
We require a single C#/VB/Net .Net 4.0 function which will work for these machines:
public function areCredentialsOK(sIP, sLogin, sPassword) as boolean
dim bOK as boolean = areCredentialsOK("10.1.2.3", "fred", "mypass")