RE: CredentialAttribute
- From: Luis Abreu <labreu@xxxxxxxxx>
- Date: Thu, 23 Feb 2006 12:02:33 +0000 (UTC)
Hello o [MVP],
It's a parameter that takes a
System.Management.Automation.MshCredential
Object,
thanks for the link. it provided me with some cool info.
but let's concentrate on the get-credential cmdlet. Well, i though that the cmdlet would automatically show the dialog to get the credentials from the user. however, by looking at the code through reflector, it looks like the processrecord method tries do get the credential property which is anotated with the credential attribute (and it looks like thisattribute is responsible for getting that info from the user). what i'd like to understand is how does monad use that attribute? for instance, when the cmdlet is executed, how does it uses it? does it look for this attribute on all the properties exposed by a cmdlet? so, if I need to receive a credential on my cmdlet, can i simply annotate that property with the credential attribute?
hope this makes sense...
---
Regards,
Luis Abreu
http://weblogs.pontonetpt.com/luisabreu
mail to: labreu_at_gmail.com
.
- Follow-Ups:
- Re: CredentialAttribute
- From: Wei Wu [MSFT]
- Re: CredentialAttribute
- Prev by Date: Re: Unable to run vbscript at system startup
- Next by Date: Re: Scripting Microsoft updates
- Previous by thread: CredentialAttribute
- Next by thread: Re: CredentialAttribute
- Index(es):
Relevant Pages
|