8
0

Anlage des Repos

This commit is contained in:
2024-01-24 16:42:38 +01:00
commit 38d6a271c4
1785 changed files with 3051496 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Password Settings
$PasswordLength = 8
$password = ""
# Set Password Character Strings
$Set0 = "abcdefghijklmnpqrstuvwxyz".ToCharArray()
$Set1 ="123456789".ToCharArray()
$Set2 = "ABCDEFGHIJKLMNPQRSTUVWXYZ".ToCharArray()
$Set3 = "$%^&()_ @#".ToCharArray()
# Build Password on Length Variable
do{
$password += $set0 | Get-Random;
$password += $set1 | Get-Random;
$password += $set2 | Get-Random;
$password += $set3 | Get-Random;
}
until ($password.Length -eq $passwordlength)
# Convert to Secure String
$pwd = convertto-securestring $password -asplaintext -force
# Display Password
$password