====== Labo Windows Server ====== Le script désactive le firewall, active le RDP, desactive le IE security et met à jour le Timezone #Disable firewall Write-Host "Disable all Firewall Profile." -ForegroundColor yellow Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled false #Enable Remote Desktop Write-Host "Enable Remote Desktop." -ForegroundColor yellow Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" -Value 0 #Disable IE Enhanced Security Write-Host "Disable IE Enhanced Security Configuration (ESC)." -ForegroundColor yellow function Disable-ieESC { $AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" $UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}" Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0 Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0 Stop-Process -Name Explorer } Disable-ieESC #Set timezone to Brussels Write-Host "Set Timezone to Brussels." -ForegroundColor yellow Set-TimeZone -ID "Romance Standard Time"