Using the System.Diagnostics namespace, it is not possible to create a category on a remote machine. You can use WMI through .NET , which opens through the System.Management and System.Management.Instrumentation namespaces.
The performance monitor is connected to one of the WMI providers for performance . You can connect via WMI to a remote machine to provide and change values. Be aware of the differences between versions of Win OS.
To access it, you will need administrator rights.
source share