Snippets test

credential set

$username = 'cn=developer,ou=powershell,ou=Users,dc=it-pro,dc=nl'
$password = ConvertTo-SecureString  'MyOhSoSecretPassword' -AsPlainText -Force 

$cred = new-object -typename System.Management.Automation.PSCredential `
-argumentlist $username, $password

$cred