I am looking for a way, from .NET code, to get the list of running processes on a remote machine, which is on a different domain.
I have the username and password for the machine. However, the System.Diagnostics.Process.GetProcesses() function only has two overrides. One of them accepts a remote machine's name, but no way to send the username and password to that machine. In order for the punciton to work, it would have to be a machine on your domain that you already have access to.
I'm not 100% sure if this can be done, but I suspect it could be done via Interop and WMI.
If it matters, the .NET app is running on a Windows 7 monitoring machine that needs to connect to a Windows XP machine out in one of our retail locations.
I have tried searching for previous questions and tried Google before posting this question. If there is a duplicate question out there, please let me know and I'll delete this question.