RousselTMLEARNING

Article · Windows administration: from discovery to expertise

Updates and security

1. Updates #

Patch fast, without breaking.

Strategy and tools #

Deployment rings

Microsoft releases security fixes on the second Tuesday of each month (Patch Tuesday), as cumulative updates. A good strategy deploys in rings: a pilot group first, then the rest, with planned reboot windows.

ToolFor whatNote
Windows Update for BusinessPCs managed by GPO or Intunerings and deferrals, no local server
WSUSon-premises servers and PCsstill supported but deprecated: no new features
Azure Update Manageron-premises (via Azure Arc) and Azure serverscentralized assessment and scheduling
HotpatchWindows Server 2025fixes without reboot most months (subscription via Azure Arc)
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 5      # derniers correctifs
Install-Module PSWindowsUpdate -Scope AllUsers
Get-WindowsUpdate                                       # correctifs disponibles
Install-WindowsUpdate -AcceptAll -AutoReboot:$false
Get-WURebootStatus ; Get-WUHistory -Last 10
Common mistake: Leaving servers “too critical to reboot” unpatched for months. They are exactly the favorite targets. Plan redundancy (cluster, two DCs, load balancer) so each node can be restarted in turn.

2. Protecting PCs and servers #

Antivirus, encryption, local passwords.

Microsoft Defender Antivirus #

Get-MpComputerStatus | Select-Object AMServiceEnabled, RealTimeProtectionEnabled, AntivirusSignatureLastUpdated, QuickScanAge
Update-MpSignature ; Start-MpScan -ScanType QuickScan
Get-MpThreatDetection | Select-Object -First 5
Add-MpPreference -ExclusionPath 'D:\SQLData'            # exclusion documentée et limitée (recommandations de l'éditeur)
Set-MpPreference -AttackSurfaceReductionRules_Ids 'd4f940ab-401b-4efc-aadc-ad5f3c50688a' -AttackSurfaceReductionRules_Actions Enabled   # règle ASR : bloquer les processus enfants d'Office
Good to know: Defender is built in and sufficient as an antivirus; Microsoft Defender for Endpoint (paid) adds detection and response (EDR), essential to investigate an intrusion.

BitLocker #

Enable-BitLocker -MountPoint 'C:' -EncryptionMethod XtsAes256 -TpmProtector -UsedSpaceOnly
Add-BitLockerKeyProtector -MountPoint 'C:' -RecoveryPasswordProtector
$kp = (Get-BitLockerVolume -MountPoint C:).KeyProtector | Where-Object KeyProtectorType -eq 'RecoveryPassword'
Backup-BitLockerKeyProtector -MountPoint 'C:' -KeyProtectorId $kp.KeyProtectorId   # sauvegarde de la clé dans AD
manage-bde -status
Common mistake: Enabling BitLocker without backing up the recovery key in AD or Entra ID: one firmware update or motherboard change, and the data is lost. Enforce key backup by GPO before encryption.

Windows LAPS #

Windows LAPS, built into Windows since 2023, gives each machine a unique local administrator password, rotated automatically and stored in AD (or Entra ID), readable only by authorized people.

Update-LapsADSchema                                                # une fois par forêt
Set-LapsADComputerSelfPermission -Identity 'OU=Serveurs,DC=corp,DC=exemple,DC=fr'
# GPO : Système > LAPS > Configurer la sauvegarde du mot de passe = Active Directory
Get-LapsADPassword -Identity SRV-FS01 -AsPlainText
Reset-LapsPassword                                                 # sur la machine, après usage du compte

3. Hardening #

Reducing the attack surface.

Key measures #

MeasureHow
Microsoft baselinesSecurity Compliance Toolkit: ready-to-import GPOs, compared with Policy Analyzer
SMBSMBv1 absent, signing required, encryption on sensitive shares
CredentialsCredential Guard, LSA protection, “Protected Users” group for admins
NTLMaudit then restrict, prefer Kerberos
Administrationtier model, privileged access workstations (PAW), separate accounts, MFA
ApplicationsAppLocker or App Control for Business (WDAC), Server Core, minimal roles
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol      # doit être Disabled
Get-SmbServerConfiguration | Select-Object EnableSMB1Protocol, RequireSecuritySignature, EncryptData
Get-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard | Select-Object SecurityServicesRunning
auditpol /get /category:*                                         # stratégie d'audit effective
Good practice: Measure your level with a free tool such as PingCastle (Active Directory) or HardeningKitty (servers), fix red items first, and measure again every quarter.

Commands to know #

ActionCommand
Latest updatesGet-HotFix | Sort-Object InstalledOn -Descending
Install updatesInstall-WindowsUpdate -AcceptAll
Defender statusGet-MpComputerStatus
Quick scanStart-MpScan -ScanType QuickScan
Encrypt the system diskEnable-BitLocker -MountPoint C: -TpmProtector
BitLocker statusmanage-bde -status
LAPS passwordGet-LapsADPassword -Identity SRV01 -AsPlainText
Disable SMBv1Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

📄 Windows updates and security: WSUS, Defender, BitLocker, LAPS and hardening →

My progress

  • ⏱ Estimated time : ≈ 7 min

Sign in to track your progress and take notes. Sign in

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Recommended Articles

Active Directory Domain Services and DNS

Understand and deploy Active Directory: forest, domains, organizational units, domain controllers...

Services, scheduled tasks, event logs and performance

Control Windows services and their recovery, automate with Task Scheduler, use event logs with Ge...

Linux administration best practices

Checklist for administering Linux servers: accounts and sudo, SSH, updates, systemd services, sto...

Monitoring and protecting Azure: Monitor, Log Analytics, Defender, Key Vault and Backup

Operate Azure: Azure Monitor (metrics, activity logs, alerts), Log Analytics and KQL, Application...

Processes, memory and performance: monitoring and troubleshooting a Linux server

Understand and control Linux processes (ps, top, signals, nice, jobs), interpret load, memory and...

Backup, monitoring and troubleshooting of a Linux server

Operate a Linux server day to day: 3-2-1 backup strategy with rsync, tar, LVM snapshots and resti...

Ansible: managing security (Vault, SSH, privileges and secrets)

Securing Ansible: Ansible Vault, SSH key authentication, become and sudo, no_log, hardening the c...

Packages, systemd services, logs and scheduled tasks

Install and update software with apt and dnf, manage services with systemctl, write a systemd uni...

Networking on Linux: configuration, diagnosis, firewall and SSH

Configure and troubleshoot Linux networking: ip, ss, netplan and NetworkManager, DNS, layered dia...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!