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

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS