1 2 3 4 |
Add-Type -AssemblyName System.DirectoryServices.AccountManagement $account = New-Object System.DirectoryServices.AccountManagement.PrincipalContext([DirectoryServices.AccountManagement.ContextType]::Machine, $env:userdomain) $account.ValidateCredentials('usuario', 'secreto333#@A') |