Question: The Read - Host cmdlet reads a line of input from the console. Which following statement is NOT correct? - AsSecureString parameter indicates that the

The Read-Host cmdlet reads a line of input from the console. Which following statement is NOT correct?
-AsSecureString parameter indicates that the cmdlet displays asterisks (?**) in place of the characters that the user types as input.
When you use -AsSecureString parameter, the output of the Read-Host cmdlet is a SecureString object (System.Security.SecureString).
-MaskInput parameter indicates that the cmdlet displays dot (.) in place of the characters that the user types as input.
When you use -MaskInput parameter, the output of the Read-Host cmdlet is a String object. This allows you to safely prompt for a password that is returned as plaintext instead of SecureString.
 The Read-Host cmdlet reads a line of input from the console.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!