Getting a Cmdlet name and return values from C#


i have library of cmdlets , i'm looking log debug info when cmdlet called.  want able actual name of cmdlet (not class) , string representation of sent writeobject logged text file.  appreciated!

i think richard sent down right path this.gettype(), goes in properties,  im guessing if dig around msdn you'll find way grab name... can debug cmdlets? have yet build one.. if can debug it, assign random var , inspect see can pull out.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source