Update to CredScan v2 (#11765)

This commit is contained in:
Travis Plunk
2020-02-10 13:12:09 -08:00
committed by Travis Plunk
parent 3161a27b4d
commit 380cd15eed
3 changed files with 11 additions and 4 deletions
@@ -334,6 +334,7 @@ try {
}
It "Can set Password value at max 256" {
#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Demo/doc/test secret.")]
$result = New-LocalUser TestUserNew1 -Password (ConvertTo-SecureString ("135@"+"A"*252) -AsPlainText -Force)
$result.Name | Should BeExactly TestUserNew1
@@ -762,6 +763,7 @@ try {
}
It "Can set Password value at max 256" {
#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Demo/doc/test secret.")]
Set-LocalUser -Name TestUserSet1 -Password (ConvertTo-SecureString ("123@"+"A"*252) -asplaintext -Force)
$result = Get-LocalUser -Name TestUserSet1