Greetings,
This is a two-part question. I am trying to automate a series of tasks to collect diagnostic data for an authentication failure we are experiencing every now and then on our web server (Citrix StoreFront). My questions are in reference to generating minidumps off processes. Your assistance is appreciated.
1. For some reason, I am unable to find a native cmdlet that will allow me to create minidumps. I am using procdump.exe instead. Is there a cmdlet available? Get-Help didn't yield the desired result.
2. I am trying to dump three instances of w3wp.exe running under different specific "user name". My problem is that I need to differentiate between the dumps when they are generated. I am able to generate the dump with the PID in the name, but that does not really help me. I really need to find a way to append the "user name" column to it. There isn't a property for user name in Get-Process. I tried description but there isn't a description available either.
Here is the code that I have:
$procs=Get-Process|where {$_.Name -eq'w3wp'}
foreach($procin$procs){
cmd/cProcdump.exe$proc.Id "$logDir\$($proc.Name).exe-$($proc.Id)-$($proc.Description).dmp"|Tee-Object-Variablet
log$t
}
Thank you,
Keyser C. Calixte