Console App Security Context

Hi All,

I am calling a web service from a console app. It appears that the WS
call does not have any credentials and so fails with a 401 error.

How do i determine the account my console app is running as?
How do I reset this to run as either my account (the one I am logged in
with) or a specified account (login / password combo)?

Many thanks,