TP 04 SSE Windows
TP 04 SSE Windows
Contents
1 Introduction 2
2 Objectives 2
3 Prerequisites 2
1
File Server Protection Windows Server 2022 Security
1 Introduction
This laboratory exercise focuses on the file server protection mechanisms in Windows Server
2022. Protection of files and storage is a critical component of operating system security.
Windows Server provides multiple security mechanisms to ensure data confidentiality, integrity,
and availability through access controls, permissions, encryption, and auditing. This lab will
guide you through the essential security features available in Windows Server 2022 for file server
implementations.
2 Objectives
By the end of this laboratory session, you should be able to:
• Implement Share permissions and understand their interaction with NTFS permissions
• Set up File Server Resource Manager (FSRM) for quotas and file screening
3 Prerequisites
• Windows Server 2022 virtual machine with GUI
• Read
• Write
• Modify
2
File Server Protection Windows Server 2022 Security
• Full Control
• Read Attributes
• Write Attributes
• Delete
• Read Permissions
• Change Permissions
• Take Ownership
4.2 Tasks
1. Create a test directory structure:
1 # Open PowerShell as Administrator
2 New - Item - Path " C :\ SecurityLab " - ItemType Directory
3 New - Item - Path " C :\ SecurityLab \ NTFSPermissions " - ItemType Directory
4 New - Item - Path " C :\ SecurityLab \ NTFSPermissions \ TestFile . txt " -
ItemType File - Value " This ␣ is ␣ a ␣ test ␣ file "
5 New - Item - Path " C :\ SecurityLab \ NTFSPermissions \ Confidential " -
ItemType Directory
6 New - Item - Path " C :\ SecurityLab \ NTFSPermissions \ Confidential \ Secret .
txt " - ItemType File - Value " Confidential ␣ information "
3
File Server Protection Windows Server 2022 Security
4
File Server Protection Windows Server 2022 Security
5
File Server Protection Windows Server 2022 Security
• Read
• Change
• Full Control
When combined with NTFS permissions, the most restrictive permission applies.
5.2 Tasks
1. Create and configure file shares:
1 # Create directories for sharing
2 New - Item - Path " C :\ SecurityLab \ Shares " - ItemType Directory
3 New - Item - Path " C :\ SecurityLab \ Shares \ PublicShare " - ItemType
Directory
4 New - Item - Path " C :\ SecurityLab \ Shares \ RestrictedShare " - ItemType
Directory
5
6 # Add sample content
7 New - Item - Path " C :\ SecurityLab \ Shares \ PublicShare \ PublicDocument .
txt " - ItemType File - Value " This ␣ is ␣ a ␣ public ␣ document "
8 New - Item - Path " C :\ SecurityLab \ Shares \ RestrictedShare \
Re st ri ct ed Do cu me nt . txt " - ItemType File - Value " This ␣ is ␣ a ␣
restricted ␣ document "
9
10 # Create shares using PowerShell
11 New - SmbShare - Name " Public " - Path " C :\ SecurityLab \ Shares \
PublicShare " - FullAccess " Everyone "
12 New - SmbShare - Name " Restricted " - Path " C :\ SecurityLab \ Shares \
RestrictedShare " - ReadAccess " DOMAIN \ ProjectA " - ChangeAccess "
DOMAIN \ Executives "
13
14 # For local groups
15 # New - SmbShare - Name " Restricted " - Path " C :\ SecurityLab \ Shares \
RestrictedShare " - ReadAccess " COMPUTER_NAME \ LocalProjectA " -
ChangeAccess " COMPUTER_NAME \ LocalExecutives "
6
File Server Protection Windows Server 2022 Security
7
File Server Protection Windows Server 2022 Security
• Quota Management
• File Screening
• Storage Reports
• File Classification
6.2 Tasks
1. Install the FSRM role service:
1 # Install FSRM role service
2 Install - WindowsFeature - Name FS - Resource - Manager -
IncludeManagementTools
2. Configure quotas:
1 # Create a quota template
2 New - Fs rmQuot aTempl ate - Name " UserQuota " - Size 500 MB - Threshold @ (
3 New - Fsr mQ uo ta Th re sh ol d - Percentage 85 - Action @ ( New - FsrmAction
- Type Email - MailTo " admin@domain . com " - Subject " 85% ␣ Quota ␣
Reached " ) ,
4 New - Fsr mQ uo ta Th re sh ol d - Percentage 95 - Action @ ( New - FsrmAction
- Type Email - MailTo " admin@domain . com " - Subject " 95% ␣ Quota ␣
Reached " )
5 )
6
7 # Create a directory for user data
8 New - Item - Path " C :\ SecurityLab \ UserData " - ItemType Directory
9 New - Item - Path " C :\ SecurityLab \ UserData \ User1 " - ItemType Directory
10 New - Item - Path " C :\ SecurityLab \ UserData \ User2 " - ItemType Directory
11
12 # Apply quota to user directories
13 New - FsrmQuota - Path " C :\ SecurityLab \ UserData \ User1 " - Template "
UserQuota "
14 New - FsrmQuota - Path " C :\ SecurityLab \ UserData \ User2 " - Template "
UserQuota "
8
File Server Protection Windows Server 2022 Security
9
File Server Protection Windows Server 2022 Security
7.2 Tasks
1. Configure BitLocker on a data drive:
1 # Ensure BitLocker feature is installed
2 Install - WindowsFeature BitLocker - I n c l u d e A l l S u b F e a t u r e -
IncludeManagementTools
3
10
File Server Protection Windows Server 2022 Security
8.2 Tasks
1. Configure audit policies:
1 # Enable file auditing in Group Policy
2 # This can be done via Local Security Policy or Group Policy
Management Console
3 auditpol / set / subcategory : " File ␣ System " / success : enable / failure :
enable
4
5 # Or using PowerShell
6 $auditFlags = [ System . Security . AccessControl . AuditFlags ] " Success , ␣
Failure "
7 $ f i l e S y s t e m A u d i t R u l e = New - Object System . Security . AccessControl .
F il e S y st e m Au d i tR u l e ( " Everyone " , " ReadData " , $auditFlags )
11
File Server Protection Windows Server 2022 Security
9.2 Tasks
1. Configure central access policies:
1 # This requires Active Directory and Group Policy
2 # Note : These commands must be run on a domain controller or with
appropriate permissions
3
4 # Create resource properties
5 New - ADR es ou rc eP ro pe rt y - Name " Confidentiality " -
R e s o u r c e P r o p e r t y V a l u e T y p e " String " - IsSecured $true -
PossibleValues @ ( " Low " , " Medium " , " High " ) - Enabled $true
6
7 # Create a central access rule
8 New - A DC e n tr a l Ac c e ss R u le - Name " Co nfi de nt ia lA cc es s " - TargetResource
@ { ResourceProperty = " Confidentiality " ; R e s o u r c e P r o p e r t y V a l u e = " High
" } - Resou rceCon dition " @Resource . Confidentiality ␣ Equals ␣ " " High " "
" - FolderRights " Read , ␣ Write " - PrincipalScope " DomainLocal " -
ResourceScope " Domain " - IdentitySid ( Get - ADGroup " DOMAIN \
Executives " ) . SID
12
File Server Protection Windows Server 2022 Security
9
10 # Create a central access policy
11 New - A D C e n t r a l A c c e s s P o l i c y - Name " D a t a C l a s s i f i c a t i o n P o l i c y " -
Description " Policy ␣ for ␣ classified ␣ data "
12 Set - A D C e n t r a l A c c e s s P o l i c y - Identity " D a t a C l a s s i f i c a t i o n P o l i c y " -
AddRule " Co nf id ent ia lA cc es s "
13
14 # Configure Group Policy to apply the central access policy
10.1 Tasks
1. Create a secure project data repository:
1 # Create directory structure
2 New - Item - Path " D :\ Projects " - ItemType Directory - Force
3 New - Item - Path " D :\ Projects \ Public " - ItemType Directory - Force
4 New - Item - Path " D :\ Projects \ Internal " - ItemType Directory - Force
5 New - Item - Path " D :\ Projects \ Confidential " - ItemType Directory -
Force
13
File Server Protection Windows Server 2022 Security
6 New - Item - Path " D :\ Projects \ Restricted " - ItemType Directory - Force
7
8 # Create sample files
9 New - Item - Path " D :\ Projects \ Public \ Pu bli cA nn ou nc em en t . txt " -
ItemType File - Value " Public ␣ information "
10 New - Item - Path " D :\ Projects \ Internal \ TeamMeeting . txt " - ItemType
File - Value " Internal ␣ meeting ␣ notes "
11 New - Item - Path " D :\ Projects \ Confidential \ FinancialData . txt " -
ItemType File - Value " Confidential ␣ financial ␣ data "
12 New - Item - Path " D :\ Projects \ Restricted \ StrategicPlan . txt " - ItemType
File - Value " Highly ␣ restricted ␣ strategic ␣ plan "
14