# Parola politikalarını düzenle secedit /export /cfg "$env:TEMP\secpol.cfg" (gc "$env:TEMP\secpol.cfg") | ForEach-Object { $_ -replace 'PasswordComplexity\s*=\s*\d+', 'PasswordComplexity = 0' ` -replace 'MinimumPasswordLength\s*=\s*\d+', 'MinimumPasswordLength = 0' } | Set-Content "$env:TEMP\secpol.cfg" secedit /configure /db secedit.sdb /cfg "$env:TEMP\secpol.cfg" /areas SECURITYPOLICY # Grup ilkesi güncelle gpupdate /force Start-Sleep -Seconds 3 # Kullanıcı listesi (kullanıcı adı ve şifre) – Administrator hariç $users = @{ "ALI" = "123456" "VELI" = "123456.." "HASAN" = "123456xxx" "HUSEYIN" = "123456asdasd" } # Kullanıcıları oluştur ve yöneticilere ekle foreach ($user in $users.Keys) { $username = $user $password = $users[$user] | ConvertTo-SecureString -AsPlainText -Force # Kullanıcıyı oluştur (eğer yoksa) if (-Not (Get-LocalUser -Name $username -ErrorAction SilentlyContinue)) { New-LocalUser -Name $username -Password $password -FullName $username Write-Host "Kullanıcı oluşturuldu: $username" } else { Write-Host "Kullanıcı zaten mevcut: $username" } # Yöneticilere ekle Add-LocalGroupMember -Group "Administrators" -Member $username -ErrorAction SilentlyContinue Write-Host "Yönetici grubuna eklendi: $username" }