# Změní pro celý stroj a pro aktuálního uživatele

# Define the registry path and value
$registryPath = "HKLM:\Software\Microsoft\ServerManager"
$valueName = "DoNotOpenServerManagerAtLogon"
$valueData = 1

# Set the registry value
Set-ItemProperty -Path $registryPath -Name $valueName -Value $valueData -Force

$registryPath = "HKCU:\Software\Microsoft\ServerManager"
Set-ItemProperty -Path $registryPath -Name $valueName -Value $valueData -Force