Right now I'm trying to get the start times of all the process that are running on a computer. The code I have for it so far is this:
foreach (Process item in Process.GetProcesses())
txtActivity.AppendText(item.StartTime.ToString());
The problem is that I run into this error:
System.ComponentModel.Win32Exception: 'Access is denied'
So far everything I've seen on how to fix this error has been unhelpful. I've tried running it with Admin access and that didn't work, and all of the other proposed methods on threads like this one have either not worked or have been impossible to perform on my machine. Any fresh help to this problem is appreciated.