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
Post a Comment