I'm trying to build a VB.Net application that displays the contents of an
eventlog. Here is the code:

dim alog as new eventlog()
dim entry as eventlogentry

alog.log = "Application Log"
alog.machinename = "."

for each entry in alog.entries
listbox1.items.add(entry.message)
next entry

This works great for the machine it is running on. However, when I change
the "alog.machinename" to a server in a different domain it doesn't work.
I don't know how to authenticate programmatically to the remote server.