Courses Job Ready Program Fresher Trainings AI For Class 7 to 12 Corporate Training Placements Tutorials
Free Learning Resources

IT Tutorials & Interview Prep

Free guides, interview Q&As, and job responsibility breakdowns — curated by industry veterans to help you crack MNC interviews

166+
Tutorial Articles
8
Topic Categories
100%
Free to Read
← Back to Windows Server & Hybrid Administration (AZ-800 )

Chapter 8 : Windows Server Security

Windows Server & Hybrid Administration (AZ-800 ) Last Updated: Jun 08, 2026

8.1 Introduction to Windows Server Security

 

“Windows Server Security” refers to the protection of servers, user accounts, applications, services, and organizational data from unauthorized access, malware attacks, ransomware, data theft, and system failures. In enterprise environments, servers store critical business information such as employee records, databases, shared files, emails, and Active Directory services. Because of this, servers are one of the primary targets for cyberattacks.

A secure Windows Server environment helps organizations maintain confidentiality, integrity, and availability of data and services. Proper server security also ensures smooth business operations, reduces downtime, and protects the organization from financial and reputational damage.

Modern organizations use multiple layers of security to protect their infrastructure. These layers include physical security, network security, operating system security, user authentication, monitoring systems, and data encryption.

---------------------------------------------------------------------

Importance of Server Security in Enterprise Environments

In enterprise environments, a single compromised server can affect the entire network. Attackers may steal confidential data, encrypt files using ransomware, or gain unauthorized administrative access.

Server security is important because it helps organizations:

    • Protect sensitive organizational data
    • Prevent unauthorized access
    • Reduce cyberattack risks
    • Ensure business continuity
    • Maintain compliance with security policies
    • Protect Active Directory infrastructure
    • Secure user authentication systems

Real-Life Example:

A company’s domain controller stores user accounts and authentication information. If attackers compromise the domain controller, they may gain access to all systems connected to the domain.

---------------------------------------------------------------------

Common Security Threats

Windows Servers face different types of security threats in enterprise environments. Administrators must understand these threats to implement proper protection mechanisms.

Malware : Malware is malicious software designed to damage systems, steal information, or disrupt operations.

Examples include:

    • Viruses
    • Worms
    • Trojans
    • Spyware

Effects of malware:

    • File corruption
    • Slow system performance
    • Unauthorized access
    • Data theft

 

Ransomware

Ransomware encrypts files and demands payment to restore access. It is one of the most dangerous threats for organizations.

Common targets:

    • File servers
    • Backup servers
    • Database servers

Effects of ransomware:

    • Data unavailability
    • Business downtime
    • Financial losses

Real-Life Example:

Many organizations worldwide were affected by WannaCry ransomware, which encrypted systems and spread rapidly across networks.

---------------------------------------------------------------------

Unauthorized Access

Unauthorized access occurs when users or attackers gain access to systems without proper permission.

Causes may include:

    • Weak passwords
    • Shared accounts
    • Misconfigured permissions
    • Stolen credentials

Security risks include:

    • Data theft
    • Configuration changes
    • Privilege escalation

---------------------------------------------------------------------

Security Layers in Windows Server

Enterprise security uses multiple layers to provide complete protection. This approach is known as layered security.

Physical Security : Physical security protects servers and networking devices from unauthorized physical access.

Examples:

    • Server room locks
    • CCTV monitoring
    • Biometric access systems
    • Security guards

Importance:

    • Prevents hardware theft
    • Prevents direct server tampering

---------------------------------------------------------------------

Network Security

Network security protects communication between systems and prevents network-based attacks.

Security methods include:

    • Firewalls
    • VLAN segmentation
    • IDS/IPS systems
    • Secure VPN connections

Importance:

    • Blocks unauthorized network traffic
    • Reduces attack surface

---------------------------------------------------------------------

Operating System (OS) Security

Operating system security focuses on securing Windows Server itself.

OS security includes the following:

    • Security updates
    • Antivirus protection
    • Strong password policies
    • Access control permissions
    • Audit logging

Importance:

    • Protects server resources
    • Prevents unauthorized changes

---------------------------------------------------------------------

Defense-in-Depth Concept

Defense in depth is a security strategy that uses multiple security layers instead of depending on a single protection mechanism.

If one security layer fails, other layers continue protecting the system.

Example:

An organization may use:

    • Firewall protection
    • Antivirus software
    • Multi-Factor Authentication (MFA)
    • Access control policies
   • Encryption
    • Monitoring systems

Advantages of Defense-in-Depth:

    • Improved security
    • Better attack prevention
    • Reduced risk of complete compromise
    • Faster threat detection

Real-Life Example: Even if an attacker steals a user password, MFA and firewall restrictions may still prevent unauthorized access.

---------------------------------------------------------------------

8.2 User & Access Security

User and Access Security focuses on controlling who can access systems, applications, files, and network resources inside an organization.

Windows Server uses authentication and authorization mechanisms to verify users and manage permissions. Proper access control reduces the risk of unauthorized activities and protects sensitive organizational resources.

 

User Authentication

Authentication is the process of verifying the identity of a user before granting access to resources.

Windows Server mainly supports two authentication methods:

    • Local Authentication
    • Domain Authentication

 

Local Authentication

Local authentication verifies users using accounts stored on the local computer.

Characteristics:

    • User accounts exist only on that machine
    • Suitable for standalone systems
    • No centralized management

Limitations:

    • Difficult to manage in large organizations
    • Separate accounts required on each computer

Example: A standalone computer with a local administrator account.

---------------------------------------------------------------------

Domain Authentication

Domain authentication uses Active Directory Domain Services (AD DS) to centrally manage user accounts and authentication.

Characteristics:

    • Centralized user management
    • Single sign-on capability
    • Used in enterprise environments

Advantages:

    • Easier administration
    • Centralized security policies
    • Better access management

Real-Life Example: Employees log into office computers using domain accounts managed by the organization’s domain controller.

 

Password Policies

Password policies define rules for creating and managing passwords in an organization.

Strong password policies improve security and reduce unauthorized access risks.

Common password policy settings include:

    • Minimum password length
    • Password complexity requirements
    • Password expiration period
    • Password history enforcement

Example of a Strong Password: • P@ssw0rd#2026

Best Practices:

    • Use long passwords
    • Avoid dictionary words
    • Change passwords regularly
    • Do not share passwords

---------------------------------------------------------------------

Account Lockout Policies

Account lockout policies help protect systems from brute-force attacks by temporarily locking accounts after multiple failed login attempts.

Common settings include:

    • Invalid login attempt threshold
    • Lockout duration
    • Reset counter timing

Example: If a user enters the wrong password 5 times, the account may lock for 30 minutes.

Advantages:

    • Prevents password guessing attacks
    • Improves account security

---------------------------------------------------------------------

Multi-Factor Authentication (MFA)

Multi-Factor Authentication adds an additional verification layer during login.

Users must provide:

    • Something they know  (Password)
    • Something they have (Mobile OTP or security token)
    • Something they are (Fingerprint or biometric data)

 

 

Benefits of MFA:

    • Stronger authentication
    • Reduced risk of stolen password attacks
    • Improved enterprise security

Real-Life Example: A user logs into a VPN using a password and a mobile authentication code.

---------------------------------------------------------------------

Role-Based Access Control (RBAC)

Role-Based Access Control assigns permissions based on user roles instead of assigning permissions individually.

Examples of roles:

    • HR Manager
    • System Administrator
    • Helpdesk Technician
    • Finance User

 

 

Advantages of RBAC:

    • Easier permission management
    • Reduced administrative workload
    • Better security control
    • Prevents excessive permissions

Real-Life Example: HR employees can access employee records, while IT administrators can manage servers and user accounts.

---------------------------------------------------------------------

8.3 Windows Firewall Configuration

A firewall is a security system that monitors and controls incoming and outgoing network traffic based on predefined security rules. In Windows Server environments, Windows Defender Firewall helps protect servers from unauthorized access, malware communication, and network-based attacks.

A properly configured firewall acts as a barrier between trusted internal networks and untrusted external networks such as the internet.

Windows Defender Firewall is enabled by default in modern Windows Server operating systems and plays an important role in enterprise security.

 

What is Windows Defender Firewall?

Windows Defender Firewall is a host-based firewall built into Windows Server that filters network traffic according to configured rules.

Its primary functions include:

    • Allowing legitimate traffic
    • Blocking unauthorized connections
    • Protecting services and applications
    • Reducing attack surfaces

The firewall can be configured for different network profiles:

    • Domain Profile
    • Private Profile
    • Public Profile

 

Inbound vs Outbound Rules

Firewall rules control how traffic enters or leaves the server.

 

 

Inbound Rules

Inbound rules control traffic coming into the server from external systems.

Examples:

    • Allowing Remote Desktop (RDP)
    • Allowing web traffic on port 80
    • Blocking unauthorized access attempts

Purpose:

    • Protect server services
    • Prevent unauthorized connections

Real-Life Example: A company allows inbound HTTPS traffic for its web server but blocks all unnecessary ports.

 

Outbound Rules

Outbound rules control traffic leaving the server to external destinations.

Examples:

    • Blocking unauthorized applications from accessing the internet
    • Restricting malware communication

Purpose:

    • Prevent data leakage
    • Control application communication

Real-Life Example: An organization blocks outbound access to suspicious websites from servers.

 

Allowing and Blocking Ports

Applications and services communicate using network ports. Firewall administrators allow or block specific ports depending on organizational requirements.

Common ports include:

    • Port 80 → HTTP
    • Port 443 → HTTPS
    • Port 3389 → Remote Desktop (RDP)
    • Port 53 → DNS
    • Port 25 → SMTP

Importance of Port Management:

    • Reduces unnecessary exposure
    • Improves network security
    • Prevents unauthorized services

Security Best Practice: Only open ports that are required for business operations.

 

Creating Custom Firewall Rules

Administrators can create custom firewall rules to allow or block specific traffic.

Firewall rules can be based on:

    • Port number
    • Program or application
    • IP address
    • Protocol type
    • Network profile

Examples of Custom Rules:

    • Allowing SQL Server traffic
    • Blocking unauthorized applications
    • Restricting access from specific IP ranges

Advantages:

    • Better traffic control
    • Improved server security
    • Customized protection

 

Importance of Firewall Security

Proper firewall configuration helps organizations:

    • Prevent cyberattacks
    • Block unauthorized access
    • Secure network communication
    • Reduce malware spread
    • Protect sensitive systems

Without firewall protection, servers become vulnerable to attacks such as:

    • Port scanning
    • Remote exploitation
    • Malware communication
    • Unauthorized remote access

 

---------------------------------------------------------------------

8.4 Windows Defender & Antivirus

Windows Defender is Microsoft’s built-in security solution that provides antivirus, anti-malware, and real-time protection for Windows systems and servers.

It continuously monitors files, applications, downloads, and system activities to detect and block malicious threats.

Windows Defender helps organizations protect servers from:

    • Viruses
    • Ransomware
    • Spyware
    • Trojans
    • Rootkits

 

Overview of Microsoft Defender

Microsoft Defender is integrated into Windows Server and provides centralized security features for endpoint protection.
 

 

 

Main functions include:

    • Malware detection
    • Real-time protection
    • Threat monitoring
    • Security scanning
    • Quarantine management

Advantages:

    • Built into Windows
    • Regular security updates
    • Low administrative overhead
    • Integration with Windows Security Center

 

Real-Time Protection

Real-time protection continuously scans files and processes while the system is running.

It automatically detects and blocks suspicious activities before damage occurs.

Real-time protection monitors:

    • Downloaded files
    • Running applications
    • USB devices
    • Email attachments
    • Background processes

Advantages:

    • Immediate threat detection
    • Faster response to attacks
    • Continuous security monitoring

Example: If a malicious file is downloaded from the internet, Defender can quarantine it automatically.

---------------------------------------------------------------------

Virus & Threat Protection Settings

Virus and Threat Protection settings allow administrators to configure security features and manage threat detection.

Common settings include:

    • Virus scanning
    • Threat history
    • Quarantine management
    • Protection updates
    • Ransomware protection

Administrators can:

    • View detected threats
    • Remove infected files
    • Restore safe files
    • Configure exclusions

Importance:

    • Improves system protection
    • Helps manage security incidents
    • Reduces malware risks

---------------------------------------------------------------------

Scanning Types in Windows Defender

Windows Defender provides different scanning methods depending on security requirements.

 

Quick Scan

A Quick Scan checks commonly targeted areas of the system.

Scans include:

    • Running processes
    • System folders
    • Startup programs

Advantages:

    • Faster scanning
    • Minimal system impact

Use Case: Daily security checks

 

Full Scan

A Full Scan checks the entire system, including all files and drives.

Advantages:

    • Deep malware detection
    • More comprehensive analysis

Disadvantages:

    • Takes longer time
    • Uses more system resources

Use Case: Weekly or monthly security checks

 

Custom Scan

A Custom Scan allows administrators to scan specific files, folders, or drives.

Advantages:

    • Flexible scanning
    • Targeted analysis

Use Case: Scanning suspicious folders or USB drives

---------------------------------------------------------------------

Importance of Antivirus Protection

Antivirus protection is essential for enterprise environments because servers continuously interact with users, applications, and network services.

Benefits include:

    • Malware prevention
    • Ransomware protection
    • Improved system stability
    • Safer file sharing
    • Reduced security risks

Organizations that do not maintain proper antivirus protection may face:

    • Data loss
    • Downtime
    • System compromise
    • Financial damage
 

---------------------------------------------------------------------

8.5 Group Policy Security Settings

Group Policy Security Settings allow administrators to centrally manage security configurations across domain computers and users.

Using Group Policy Objects (GPOs), organizations can apply security rules automatically throughout the domain environment.

Group Policy improves the following:

    • Centralized administration
    • Security standardization
    • User management
    • Compliance enforcement

 

Password Policy Configuration

Password policies define password requirements for users in a domain environment.

Administrators configure password policies through Group Policy Management.

 

 

Common settings include:

    • Minimum password length
    • Password complexity
    • Maximum password age
    • Password history

Strong password policies help:

    • Prevent unauthorized access
    • Reduce brute-force attacks
    • Improve authentication security

Example: Organizations may require passwords with uppercase letters, numbers, and special characters.

 

Account Lockout Policy

Account Lockout Policy automatically locks accounts after multiple failed login attempts.

 

 

Important settings include:

    • Account lockout threshold
    • Lockout duration
    • Reset account lockout counter

Advantages:

    • Protects against password guessing attacks
    • Improves account security

Example: After 5 failed login attempts, an account may lock for 30 minutes.

 

Audit Policy

Audit Policy allows administrators to monitor and record user and system activities.

 

 

Audit logs help organizations:

    • Detect suspicious activities
    • Investigate security incidents
    • Maintain compliance

Common audit categories include:

    • Logon events
    • Account management
    • File access
    • Policy changes

Real-Life Example: Security teams monitor failed login attempts using audit logs.

 

Security Templates

Security Templates are predefined security configurations used to standardize server security settings.

Templates may contain:

    • Password policies
    • Audit settings
    • User rights assignments
    • Security permissions

Advantages:

    • Faster security deployment
    • Consistent configurations
    • Reduced administrative effort

Use Case: Organizations apply security templates to multiple servers to maintain standardized security policies across the infrastructure.


 ---------------------------------------------------------------------

8.6 Patch Management & Updates

Patch Management is the process of installing updates, security patches, and bug fixes on operating systems and applications to maintain system security and stability.

In Windows Server environments, patch management is extremely important because attackers often target systems that contain known vulnerabilities. Regular updates help organizations protect servers from malware, ransomware, and cyberattacks.

Microsoft regularly releases updates for Windows Server to fix:

    • Security vulnerabilities
    • Software bugs
    • Performance issues
    • Compatibility problems

Proper patch management improves system reliability and reduces security risks in enterprise environments.

 

Importance of Regular Updates

Regular updates help maintain a secure and stable server environment.

Benefits of regular updates include:

    • Improved security
    • Better system performance
    • Bug fixes
    • Enhanced stability
    • Support for new features

Without updates, systems become vulnerable to attacks because hackers often exploit outdated software.

Real-Life Example:

The WannaCry ransomware attack affected many organizations because systems were not updated with the required Microsoft security patch.

 

Windows Update Process

Windows Update is Microsoft’s update service used to download and install operating system updates automatically or manually.

The update process generally includes:

    • Checking for available updates
    • Downloading updates
    • Installing updates
    • Restarting the system if required

Types of updates include:

    • Security updates
    • Feature updates
    • Critical updates
    • Driver updates

Administrators can configure updates using:

    • Windows Settings
    • Group Policy
    • WSUS (Windows Server Update Services)

---------------------------------------------------------------------

WSUS Overview (Windows Server Update Services)

WSUS is a Microsoft service that allows administrators to centrally manage and distribute updates within an organization.

Instead of downloading updates separately on every system, WSUS downloads updates once and distributes them to client systems.

 

 

Functions of WSUS:

    • Centralized update management
    • Approval or rejection of updates
    • Scheduled update deployment
    • Reporting and monitoring

Advantages of WSUS:

    • Saves internet bandwidth
    • Improves update control
    • Reduces administrative workload
    • Ensures update consistency

Real-Life Example: A company with 500 computers uses WSUS to deploy security patches from a single server instead of downloading updates individually on every machine.

 

Risks of Unpatched Systems

Systems that are not updated regularly become vulnerable to various security threats.

Risks include:

    • Malware infection
    • Ransomware attacks
    • Data breaches
    • Unauthorized access
    • System instability

Hackers commonly exploit:

    • Old vulnerabilities
    • Weak security configurations
    • Unsupported software

Consequences of unpatched systems:

    • Business downtime
    • Financial losses
    • Data loss
    • Reputation damage

Security Best Practice: Organizations should maintain a regular patch management schedule and monitor update compliance continuously.

 

---------------------------------------------------------------------

8.7 Data Security & Encryption

Data security is one of the most important responsibilities of a Windows Server administrator. Organizations store sensitive information such as employee records, financial data, passwords, customer details, and confidential business files on servers. If this data is not properly protected, attackers may steal, modify, or destroy important information.

Windows Server provides multiple security technologies to protect data from unauthorized access. These technologies include encryption, secure backups, access permissions, and monitoring systems.

The primary goals of data security are:

    • Protect confidentiality of data  
    • Prevent unauthorized access  
    • Maintain data integrity  
    • Ensure business continuity  
    • Protect against ransomware and data theft 

Data protection is required in almost every organization including banks, hospitals, IT companies, government offices, and cloud environments.

---------------------------------------------------------------------

BitLocker Drive Encryption

BitLocker is a full disk encryption feature provided by Microsoft Windows. It encrypts the entire drive so that unauthorized users cannot access data even if the hard disk is removed from the server.

BitLocker protects data at the storage level. If a server is stolen or the disk is accessed physically, the data remains unreadable without the recovery key or authentication method.

 

 

Features of BitLocker

    • Full disk encryption  
    • TPM (Trusted Platform Module) support  
    • Recovery key protection  
    • Prevents offline attacks  
    • Supports operating system and data drives 

 

Working of BitLocker

When BitLocker is enabled:

    • The drive is encrypted completely  
    • Data is automatically decrypted for authorized users during normal usage  
    • Unauthorized users cannot access files without proper authentication 

 

Authentication Methods

BitLocker can use:

    • TPM chip  
    • PIN authentication  
    • USB startup key  
    • Recovery password 

Real-World Example : A company laptop containing employee salary records is stolen. Since BitLocker encryption is enabled, attackers cannot read the data from the hard drive.

 

Encrypting File System (EFS)

Encrypting File System (EFS) is a Windows feature used to encrypt individual files and folders instead of the entire drive.

EFS works at the file level and is mainly used when specific files need protection from unauthorized local access.

 

Features of EFS

    • Encrypts specific files or folders  
    • User-based encryption  
    • Transparent encryption and decryption  
    • Integrated with NTFS permissions 

 

Advantages of EFS

    • Protects confidential documents  
    • Easy to use inside Windows  
    • Allows selective encryption 

 

Limitations of EFS

    • Only works on NTFS partitions  
    • Data recovery becomes difficult without recovery certificates  
    • Does not protect against full system theft like BitLocker 

 

Real-World Example : An HR department encrypts salary documents using EFS so that only authorized HR staff can access them.

---------------------------------------------------------------------

Difference Between BitLocker and EFS

 

FeatureBitLockerEFS
Encryption TypeFull drive encryptionFile/folder encryption
Protection ScopeEntire diskSelected files
Best Use CaseDevice theft protectionIndividual file security
Works OnEntire volumeNTFS files/folders
Security LevelHigher for physical attacksHigher for user-level protection

 

Backup and Recovery Basics

Backup and recovery are important parts of data security. Even if systems are protected using firewalls and antivirus software, data can still be lost because of:

    • Hardware failure  
    • Ransomware attacks  
    • Human error  
    • Accidental deletion  
    • Natural disasters 

A proper backup strategy ensures that data can be restored quickly during emergencies.

---------------------------------------------------------------------

Important Backup Concepts:

1. Full Backup : Copies all selected data.

 

 

2. Incremental Backup : Copies only changed data since the last backup.

 

 

3. Differential Backup : Copies data changed since the last full backup.

 

 

Data Protection Best Practices

Organizations follow security best practices to reduce risks and improve protection.

 

Important Best Practices

    • Use strong passwords  
    • Enable MFA wherever possible  
    • Encrypt sensitive data  
    • Maintain regular backups  
    • Restrict unnecessary permissions  
    • Regularly update systems  
    • Monitor security logs  
    • Use antivirus and firewall protection 

3-2-1 Backup Rule : A widely used backup strategy is the 3-2-1 Rule.

It recommends:

    • Keep 3 copies of data  
    • Store backups on 2 different storage types  
    • Keep 1 copy offsite 

This strategy improves disaster recovery readiness.

 

Real-World Example:

A company stores:

    • One copy on the production server  
    • One copy on local NAS storage  
    • One copy on cloud backup storage 

Even if ransomware attacks the local network, cloud backup remains safe.

---------------------------------------------------------------------

8.8 Auditing & Monitoring

Auditing and monitoring help administrators track activities happening inside the Windows Server environment. These tools are important for detecting security threats, troubleshooting issues, and maintaining compliance.

Monitoring allows administrators to observe system activity continuously, while auditing records important events for future investigation.

Organizations use auditing for:

    • Detecting unauthorized access  
    • Investigating security incidents  
    • Monitoring user activity  
    • Tracking failed login attempts  
    • Compliance reporting 

 

Event Viewer Logs

Event Viewer is a built-in Windows tool used to view system logs and security events.

It records information related to:

    • System startup and shutdown  
    • Login events  
    • Application errors  
    • Security events  
    • Service failures

 

Main Types of Logs:

1.  Application Logs

Contain events generated by applications.

2. Security Logs

Contain login events, audit records, and security-related activities.

3. System Logs

Contain operating system events and driver information.

 

Real-World Example : If users cannot log in to the domain, administrators can check Security Logs inside Event Viewer to identify failed authentication attempts.

 

Security Logs Monitoring

Security logs help administrators identify suspicious activities in the environment.

Important activities monitored include:

    • Failed login attempts  
    • Account lockouts  
    • Privilege changes  
    • User account creation/deletion  
    • Policy modifications 

Regular monitoring helps detect cyberattacks early.

 

Real-World Example : Multiple failed login attempts from different systems may indicate a brute-force password attack.

 

Login Tracking

Login tracking records information about user authentication activities.

Administrators can monitor:

    • Successful logins  
    • Failed logins  
    • Login time  
    • Source computer  
    • Account lockout events 

This helps organizations maintain accountability and detect suspicious user behavior.

 

Importance of Login Tracking

    • Detect unauthorized access  
    • Monitor employee activity  
    • Identify compromised accounts  
    • Maintain audit compliance 

 

Auditing File Access

Windows Server allows administrators to audit access to files and folders.

File auditing helps track:

    • Who accessed the file  
    • What action was performed  
    • Whether access was successful or denied  
    • Date and time of access 

This feature is commonly used for confidential business documents.

 

Example : A finance department may audit access to payroll files to ensure only authorized employees open or modify them.

 

Importance of Auditing and Monitoring

Without monitoring systems, organizations may fail to detect security threats until major damage occurs.

Effective auditing provides:

    • Better security visibility  
    • Faster incident response  
    • Improved troubleshooting  
    • Regulatory compliance  
    • User accountability 

Continuous monitoring is an essential part of modern Windows Server security management.