Forcing NT credentials into CredentialsCache
Posted on 2007-07-30
I have a VB.NET running under an NT account (or at least, executed by a user who is logged into the network).
I need to pass that user's credentials through to a webService, but all I get from CredentialsCache.DefaultCredentials is a set of blanks.
I can't force the user to log in as the idea is to get the app to run from a scheduled task with the command line and I don't want to store the user info anywhere since the accounts may change.
So, how can I force the app to run with so that the credentials get set in the credentialscache?