update
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user