If i use delprof2 and cmd to remotly delete profiles, which user would this be run under if no other user is given?
If you run something as yourself and try connect to a remote computer, Windows will normally use your account permissions. The two common ways around this are if the program has a place to give specific login details then do that, or for you to run the program as another account using Run As.
I expect delprof2 is no exception, but I haven't used it.
As TessellatingHeckler stated in his answer, a Windows application runs under the context of the user who launches the application, unless configured otherwise via credentials options in the application, or by using Run As.
Note that I'm not referring to system components, services, or web applications here, I'm only referring to applications launched interactively by a user.