mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update to CredScan v2 (#11765)
This commit is contained in:
committed by
Travis Plunk
parent
3161a27b4d
commit
380cd15eed
+2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user