Encrypting Data on Windows Server: BitLocker and EFS

On Windows Server, use BitLocker to protect a whole volume or EFS to protect selected NTFS files with a user certificate. BitLocker protects a locked or offline drive; EFS limits file access to authorized certificate holders. Neither replaces permissions, tested backups, or network encryption.

ToolScopeRecovery
BitLockerWhole volumeUnlock method plus a separate recovery key
EFSSelected NTFS filesUser’s EFS private key or recovery agent

Prepare recovery before enabling encryption

Plan recovery before switching encryption on. For a domain-managed server, configure the fixed-drive policy to escrow BitLocker recovery information in AD DS and require successful backup; verify an authorized administrator can retrieve it. For a standalone server, store the recovery password in an approved vault or offline location separate from the machine, and restrict access. See Microsoft’s BitLocker recovery overview. EFS uses a different key: preserve the user’s private key in a password-protected PFX stored separately. Back up the data too, and test restoring a copy.

BitLocker protects data while a volume is locked, but the running server can read an unlocked drive. Keep NTFS and share permissions appropriate for the workload, and secure the system that controls access to the volume.

Encrypt a Windows Server volume with BitLocker

1. Install the BitLocker feature

In Server Manager, open Manage > Add Roles and Features, select the target server, skip Server Roles, check BitLocker Drive Encryption under Features, then install. Or run this in elevated PowerShell on Server Core or for automation:

Install-WindowsFeature BitLocker -IncludeAllSubFeature -IncludeManagementTools -Restart

Installation requires a restart, so schedule downtime. See Microsoft’s BitLocker installation guide. On Desktop Experience, the Control Panel applet is also available; Server Core uses PowerShell or manage-bde.

Server Manager's Features page with BitLocker Drive Encryption selected.
Server Manager with BitLocker selected.
Elevated PowerShell running the BitLocker feature installation command and showing that a restart is required.
Install BitLocker and restart the server.

2. Add unlock and recovery protectors

Confirm the drive letter before changing anything. This example uses D: as a fixed data volume; substitute the correct volume on your server. Add a password protector for routine unlocking and a separate recovery-password protector:

$pw = Read-Host "Enter a strong D: unlock password" -AsSecureString
Add-BitLockerKeyProtector -MountPoint "D:" -PasswordProtector -Password $pw
Add-BitLockerKeyProtector -MountPoint "D:" -RecoveryPasswordProtector

Before encryption, verify the recovery password was escrowed by policy or saved in your approved vault; never leave it only on the encrypted server. Microsoft recommends a primary unlock method plus a recovery protector for data volumes; see the BitLocker operations guide.

PowerShell commands add a password protector and a recovery password protector to the D: data volume.
Add everyday and recovery unlock methods.

3. Start encryption and check progress

-UsedSpaceOnly is faster for a new volume but leaves deleted sectors untouched. Omit it for a drive that previously held sensitive data.

Enable-BitLocker -MountPoint "D:" -EncryptionMethod XtsAes256 -UsedSpaceOnly
Get-BitLockerVolume -MountPoint "D:"

Check VolumeStatus, EncryptionPercentage, and ProtectionStatus with Get-BitLockerVolume; wait for completion. See Microsoft’s Enable-BitLocker and Get-BitLockerVolume references.

The BitLocker Drive Encryption panel shows the D: data volume encrypting.
Monitor encryption until D: completes.

Encrypt selected files with EFS

EFS protects individual files and folders on NTFS, often when different users need separate access. It cannot encrypt compressed files, system files or directories, or a volume’s root. See Microsoft’s EFS file-encryption overview.

1. Make sure NTFS encryption is enabled

In an elevated Command Prompt, check the setting:

fsutil behavior query disableencryption

0 means enabled; 1 means disabled. If disabled, run:

fsutil behavior set disableencryption 0

If you changed the setting, restart during a maintenance window. See Microsoft’s fsutil behavior reference.

Administrator Command Prompt enables NTFS file encryption with fsutil and reports that a restart is required.
Enable NTFS encryption, then restart.

2. Encrypt a file or folder

In File Explorer, open the item’s Properties > General > Advanced. Check Encrypt contents to secure data, choose OK, then Apply. At the scope prompt, choose folder only or include existing subfolders and files. Encrypt a file’s parent directory too so later changes do not leave the file unencrypted. The cipher command reference explains how to check EFS status.

Folder Properties and the Advanced Attributes dialog with Encrypt contents to secure data checked.
Select EFS in Advanced Attributes.
The Confirm Attribute Changes dialog applies encryption to a folder, its subfolders, and its files.
Apply EFS to the folder and contents.

3. Back up the EFS certificate

While signed in as the EFS user, run cipher /x EFSBackup and set a password for the exported PFX. Store it separately from the server and data. This exports the user’s EFS certificate and key, not a recovery-agent policy. Back up a domain Data Recovery Agent certificate separately if one is configured. See Microsoft’s cipher reference.

Administrator Command Prompt runs cipher /x EFSBackup and requests a password for the PFX export.
Export and securely store the EFS PFX.

Which option should you use?

Use BitLocker for whole-volume protection while a server is locked or offline; use EFS for selected NTFS files with per-user access. Test recovery of both keys and data before relying on either method.

Leave a Comment

How to Check Whether a Website or Network Host Is Down with EasyNetMonitor

How to Check Whether a Website or Network Host Is Down with EasyNetMonitor

Use EasyNetMonitor to track a website or network computer from the Windows tray, read green and red results, and tell when a ping check can mislead.

20 Free ISO Tools to Create, Mount, Burn, Edit, and Extract Images

20 Free ISO Tools to Create, Mount, Burn, Edit, and Extract Images

Compare 20 free ISO tools by task and platform, including built-in mounting, image extraction, disc burning, ISO editing, and bootable USB creation.

Encrypting Data on Windows Server: BitLocker and EFS

Encrypting Data on Windows Server: BitLocker and EFS

Compare BitLocker and EFS on Windows Server, then follow current steps to encrypt a volume or NTFS files, protect recovery keys, and verify status.

Mitini: A Siri-Like Virtual Assistant for Windows

Mitini: A Siri-Like Virtual Assistant for Windows

Learn what Mitini for Windows did, how its voice-query system worked, why the old download is uncertain, and which built-in Windows 11 voice-control tool is supported today.

How to Install MariaDB on Windows Server with the MSI Installer

How to Install MariaDB on Windows Server with the MSI Installer

Install MariaDB on Windows Server, configure its service and TCP/IP access, verify the connection, and use HeidiSQL to import SQL files or create a database.

How to Access Windows Server Remotely with RDP

How to Access Windows Server Remotely with RDP

Learn how to enable RDP on Windows Server, limit access to approved users, and connect over a LAN, VPN, or secure RD Gateway.

How to Check for Open Ports on Windows Server

How to Check for Open Ports on Windows Server

Find local TCP listeners, identify the process using a port, and test whether a Windows Server port is reachable with PowerShell, PortQry, or Nmap.

How to Map a Network Drive in Windows 10

How to Map a Network Drive in Windows 10

Map a shared folder as a drive letter in Windows 10, reconnect it at sign-in, confirm access, and fix common path, credential, and network discovery issues.

How to Output Mic Sound to Speakers in Windows 10

How to Output Mic Sound to Speakers in Windows 10

Hear your microphone through Windows 10 speakers with the Listen to this device setting. Choose the right input and output, test the route, and prevent feedback.

How to Change Icon Size on Windows 10: Desktop, Taskbar, and File Explorer

How to Change Icon Size on Windows 10: Desktop, Taskbar, and File Explorer

Change icon size on Windows 10 with desktop, taskbar, and File Explorer controls. Learn when display scaling helps and how to fix unexpected size changes.