Bug description
If you exclude both the -Username and -Password parameters, the module will prompt for both, but the password is obfuscated, as expected. If, however, you pass the -Username without the -Password parameter, the module will prompt for the password. That prompt is in plaintext.
Command-line input
New-AsBuiltReport -Report Microsoft.Windows -Target localhost -OutputFolderPath . -Filename example -Username bennett
Steps to reproduce
- Create a new AsBuiltReport while passing the
-Username parameter. Do not pass the -Password parameter.
- Observe that the module prompts for the password, but the input is in plaintext.
Expected behaviour
The password is hidden
Screenshots

Operating System
Windows 11 24H2
PowerShell Version
Name Value
---- -----
PSVersion 7.4.6
PSEdition Core
GitCommitId 7.4.6
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
and
Name Value
---- -----
PSVersion 5.1.26100.2161
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.2161
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PowerShell Modules
Name Version
---- -------
AsBuiltReport.Core 1.4.1
PScribo 0.10.0
Additional Context
No response
Before submitting
Bug description
If you exclude both the
-Usernameand-Passwordparameters, the module will prompt for both, but the password is obfuscated, as expected. If, however, you pass the-Usernamewithout the-Passwordparameter, the module will prompt for the password. That prompt is in plaintext.Command-line input
New-AsBuiltReport -Report Microsoft.Windows -Target localhost -OutputFolderPath . -Filename example -Username bennett
Steps to reproduce
-Usernameparameter. Do not pass the-Passwordparameter.Expected behaviour
The password is hidden
Screenshots
Operating System
Windows 11 24H2
PowerShell Version
and
PowerShell Modules
Additional Context
No response
Before submitting