Files
Zack Meier 1d304511b8 update
2026-04-15 15:45:50 -05:00

14 lines
427 B
Plaintext

Set-PSUAuthenticationMethod -Type "Form" -ScriptBlock {
param(
[PSCredential]$Credential
)
#
# You can call whatever cmdlets you like to conduct authentication here.
# Just make sure to return the $Result with the Success property set to $true
#
New-PSUAuthenticationResult -ErrorMessage 'Bad username or password'
}
Set-PSUAuthenticationMethod -Type "Windows"
Set-PSUAuthenticationMethod -Type "Saml2" -Disabled